Skip to content

Commit

Permalink
Add back arrow to Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
cyb3rko committed Nov 7, 2022
1 parent 31797ac commit 61f33ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

<activity
android:name="com.cyb3rko.flashdim.SettingsActivity"
android:parentActivityName=".MainActivity"
android:fitsSystemWindows="true"
android:screenOrientation="portrait"
android:exported="false" />
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/kotlin/com/cyb3rko/flashdim/SettingsActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ internal class SettingsActivity : AppCompatActivity(), OnSharedPreferenceChangeL
.replace(binding.settingsContainer.id, SettingsFragment())
.commit()

setSupportActionBar(binding.topAppBar)
supportActionBar?.setDisplayHomeAsUpEnabled(true)

PreferenceManager.setDefaultValues(this, R.xml.preferences, false)
PreferenceManager.getDefaultSharedPreferences(this)
.registerOnSharedPreferenceChangeListener(this)
Expand Down

0 comments on commit 61f33ca

Please sign in to comment.