diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2020-02-25 09:31:53 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2020-02-25 14:23:28 +0530 |
commit | 02296abf3733642835f1eb2b2b0c467d5633e154 (patch) | |
tree | 048051635feb5d21b2c7236bf28f4ae0d9840368 /app | |
parent | 071091bc8c24893219650d34dc11ebcb4dfeb2d3 (diff) |
MainActivity: Fix backstack bug exposed by fragment 1.2.2
We've been relying on implicit backstack changes to handle removing the detail fragment for a while which is now gone so let's do this properly like we should
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/com/wireguard/android/activity/MainActivity.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/src/main/java/com/wireguard/android/activity/MainActivity.java b/app/src/main/java/com/wireguard/android/activity/MainActivity.java index c19be608..c4f61151 100644 --- a/app/src/main/java/com/wireguard/android/activity/MainActivity.java +++ b/app/src/main/java/com/wireguard/android/activity/MainActivity.java @@ -50,6 +50,7 @@ public class MainActivity extends BaseActivity } // Deselect the current tunnel on navigating back from the detail pane to the one-pane list. if (!isTwoPaneLayout && backStackEntries == 1) { + getSupportFragmentManager().popBackStack(); setSelectedTunnel(null); return; } |