diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 7f53c91ba..0b4b5e9f5 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -42,7 +42,8 @@ android:label="Run tests" android:name=".activity.runtests.RunTestsActivity" android:parentActivityName=".activity.MainActivity" - android:exported="false"/> + android:exported="false" + android:theme="@style/Theme.MaterialComponents.Light.DarkActionBar.App.NoActionBar"/> { + finish() + true + } + + else -> super.onOptionsItemSelected(item) + } + } + private fun onMenuItemClickListener(menuItem: MenuItem): Boolean { return when (menuItem.itemId) { R.id.runButton -> { diff --git a/app/src/main/res/layout/activity_run_tests.xml b/app/src/main/res/layout/activity_run_tests.xml index 309bf0041..10dcc4d38 100644 --- a/app/src/main/res/layout/activity_run_tests.xml +++ b/app/src/main/res/layout/activity_run_tests.xml @@ -6,14 +6,25 @@ android:layout_height="match_parent" tools:context=".activity.runtests.RunTestsActivity"> + + + app:layout_constraintEnd_toEndOf="parent">