summaryrefslogtreecommitdiffhomepage
path: root/build.gradle
diff options
context:
space:
mode:
authorHarsh Shandilya <harsh@prjkt.io>2018-04-29 10:14:20 +0530
committerHarsh Shandilya <harsh@prjkt.io>2018-04-30 17:30:24 +0530
commit8e97d75e680f61923f2a6bd9962c2e811d0dbf7d (patch)
tree5435220213cf5c3a03800b8eabfb485bd2aa5672 /build.gradle
parent3374ecffba1c5b1ce11f8f2ece8705df75145e15 (diff)
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 <harsh@prjkt.io>
Diffstat (limited to 'build.gradle')
0 files changed, 0 insertions, 0 deletions