Browse Source

Fixed memory leak in IncognitoActivity

master
Anthony Restaino 9 years ago
parent
commit
cb19ce2d0a
  1. 2
      app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java
  2. 3
      app/src/main/java/acr/browser/lightning/activity/IncognitoActivity.java

2
app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java

@ -1099,7 +1099,7 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements @@ -1099,7 +1099,7 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements
return true;
}
private void closeBrowser() {
public void closeBrowser() {
mBrowserFrame.setBackgroundColor(mBackgroundColor);
performExitCleanUp();
mTabsManager.shutdown();

3
app/src/main/java/acr/browser/lightning/activity/IncognitoActivity.java

@ -58,7 +58,6 @@ public class IncognitoActivity extends BrowserActivity { @@ -58,7 +58,6 @@ public class IncognitoActivity extends BrowserActivity {
@Override
public void closeActivity() {
closeDrawers();
performExitCleanUp();
finish();
closeBrowser();
}
}

Loading…
Cancel
Save