Revert "Fix activity leak on Android Q"
This reverts commit 489518000971914b2608da43e2146690dcc02cb9. October has arrived. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
e42bd29382
commit
59620456ee
@ -71,7 +71,6 @@ ext {
|
||||
appcompatVersion = '1.1.0'
|
||||
cardviewVersion = '1.0.0'
|
||||
databindingVersion = '3.5.0'
|
||||
leakCanaryVersion = "2.0-beta-3"
|
||||
materialComponentsVersion = '1.0.0'
|
||||
jsr305Version = '3.0.2'
|
||||
preferenceVersion = '1.1.0'
|
||||
@ -95,7 +94,6 @@ dependencies {
|
||||
implementation "com.journeyapps:zxing-android-embedded:$zxingEmbeddedVersion"
|
||||
implementation "net.sourceforge.streamsupport:android-retrofuture:$streamsupportVersion"
|
||||
implementation "net.sourceforge.streamsupport:android-retrostreams:$streamsupportVersion"
|
||||
debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion"
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
|
@ -53,17 +53,8 @@ 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();
|
||||
}
|
||||
}
|
||||
|
||||
@Override public void onBackStackChanged() {
|
||||
if (actionBar == null)
|
||||
|
Loading…
Reference in New Issue
Block a user