wireguard-android/app/src/main/java/com/wireguard/android
Harsh Shandilya fe4cc22ca0 SettingsActivity: Gracefully exit when options menu home is pressed
This is an activity, so it does not join the fragment backstack, but
instead piles on top

SettingsActivity
| -> MainActivity
| -> EditorFragment
| -> DetailFragment
| -> ListFragment

Without overriding the back button in the toolbar, it simply
kills the entire state on MainActivity and causes it to reload.
By calling finish() on the activity when home is pressed from the
item menu we can silently make it die without affecting any underlying
states held by MainActivity and instead return to the exact fragment
we launched settings from.

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
2018-04-30 17:30:24 +05:30
..
activity SettingsActivity: Gracefully exit when options menu home is pressed 2018-04-30 17:30:24 +05:30
backend Quick cleanup across the board 2018-04-28 06:07:48 +02:00
configStore FileConfigStore: Warn for deletion failure in exception path 2018-01-18 04:12:54 -06:00
databinding project: Global cleanup 2018-01-08 02:19:13 -06:00
fragment Prefer AppCompat classes 2018-04-30 17:30:24 +05:30
model Quick cleanup across the board 2018-04-28 06:07:48 +02:00
preference Prefer AppCompat classes 2018-04-30 17:30:24 +05:30
util Quick cleanup across the board 2018-04-28 06:07:48 +02:00
widget global: Fix or suppress most lints/warnings 2018-01-08 23:39:26 -06:00
Application.java GoBackend: integrate into app 2018-02-17 21:14:09 +01:00
BootShutdownReceiver.java global: Clean up error logging 2018-01-09 09:37:49 -06:00
QuickTileService.java QuickTileService: Fix crash opening activity 2018-01-10 11:13:16 -06:00