File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
VolumeStepsIncrease/src/main
java/com/programminghoch10/VolumeStepsIncrease Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 8
8
android : exported =" true"
9
9
android : label =" @string/title_activity_settings"
10
10
android : theme =" @style/AppTheme"
11
+ android : excludeFromRecents =" true"
11
12
>
12
13
<intent-filter >
13
14
<action android : name =" android.intent.action.MAIN" />
Original file line number Diff line number Diff line change @@ -25,9 +25,12 @@ class SettingsActivity : FragmentActivity() {
25
25
if (savedInstanceState == null ) {
26
26
supportFragmentManager.beginTransaction().replace(R .id.settings, SettingsFragment ()).commit()
27
27
}
28
- actionBar?.setDisplayHomeAsUpEnabled(
29
- supportFragmentManager.backStackEntryCount > 0
30
- )
28
+ actionBar?.setDisplayHomeAsUpEnabled(true )
29
+ }
30
+
31
+ override fun onNavigateUp (): Boolean {
32
+ finish()
33
+ return super .onNavigateUp()
31
34
}
32
35
33
36
class SettingsFragment : PreferenceFragmentCompat () {
You can’t perform that action at this time.
0 commit comments