summaryrefslogtreecommitdiffhomepage
path: root/app/src
diff options
context:
space:
mode:
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/com/wireguard/android/activity/MainActivity.java11
1 files changed, 1 insertions, 10 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 0a1dc0be..ab9a4f8a 100644
--- a/app/src/main/java/com/wireguard/android/activity/MainActivity.java
+++ b/app/src/main/java/com/wireguard/android/activity/MainActivity.java
@@ -53,16 +53,7 @@ public class MainActivity extends BaseActivity
setSelectedTunnel(null);
return;
}
- if (isTaskRoot()) {
- // @{link TunnelDetailFragment} is in foreground
- if (backStackEntries == 2) {
- getSupportFragmentManager().popBackStack();
- } else if (backStackEntries == 0) {
- finishAfterTransition();
- }
- } else {
- super.onBackPressed();
- }
+ super.onBackPressed();
}
@Override public void onBackStackChanged() {