diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/DebugActivity.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/DebugActivity.java index d2d6e9e5d..92e0f0cb4 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/DebugActivity.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/DebugActivity.java @@ -99,6 +99,7 @@ import nodomain.freeyourgadget.gadgetbridge.BuildConfig; import nodomain.freeyourgadget.gadgetbridge.GBApplication; import nodomain.freeyourgadget.gadgetbridge.R; import nodomain.freeyourgadget.gadgetbridge.Widget; +import nodomain.freeyourgadget.gadgetbridge.activities.welcome.WelcomeActivity; import nodomain.freeyourgadget.gadgetbridge.adapter.SpinnerWithIconAdapter; import nodomain.freeyourgadget.gadgetbridge.adapter.SpinnerWithIconItem; import nodomain.freeyourgadget.gadgetbridge.database.DBHandler; @@ -772,6 +773,16 @@ public class DebugActivity extends AbstractGBActivity { getApplicationContext().startActivity(cameraIntent); } }); + + Button startWelcomeActivity = findViewById(R.id.startWelcomeActivity); + startWelcomeActivity.setOnClickListener(view -> { + startActivity(new Intent(this, WelcomeActivity.class)); + }); + + Button startPermissionsActivity = findViewById(R.id.startPermissionsActivity); + startPermissionsActivity.setOnClickListener(view -> { + startActivity(new Intent(this, PermissionsActivity.class)); + }); } @RequiresApi(Build.VERSION_CODES.O) diff --git a/app/src/main/res/layout/activity_debug.xml b/app/src/main/res/layout/activity_debug.xml index 30e302064..acd9ebd4c 100644 --- a/app/src/main/res/layout/activity_debug.xml +++ b/app/src/main/res/layout/activity_debug.xml @@ -309,6 +309,22 @@ grid:layout_columnSpan="2" grid:layout_gravity="fill_horizontal" android:text="@string/open_camera" /> + +