diff options
author | John Reck <jreck@android.com> | 2014-05-06 17:00:47 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-05-06 17:00:47 +0000 |
commit | 30879d5e687515cbbd73dbe19efd7fd5dfbc00de (patch) | |
tree | 22486701612c72cfecf8fc506d7bc211929c7cdd | |
parent | f16c575964e68446cc480593430640ca3d4fb036 (diff) | |
parent | b7f106e3755dde2f2db4f2430700e29016409856 (diff) | |
download | packages_apps_Browser-30879d5e687515cbbd73dbe19efd7fd5dfbc00de.zip packages_apps_Browser-30879d5e687515cbbd73dbe19efd7fd5dfbc00de.tar.gz packages_apps_Browser-30879d5e687515cbbd73dbe19efd7fd5dfbc00de.tar.bz2 |
am b7f106e3: am 6207cda4: Merge "Fix Memory leaks on Browser application"
* commit 'b7f106e3755dde2f2db4f2430700e29016409856':
Fix Memory leaks on Browser application
-rw-r--r-- | src/com/android/browser/NavScreen.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/browser/NavScreen.java b/src/com/android/browser/NavScreen.java index fda8bcb..4e81915 100644 --- a/src/com/android/browser/NavScreen.java +++ b/src/com/android/browser/NavScreen.java @@ -162,6 +162,7 @@ public class NavScreen extends RelativeLayout } else { mUiController.closeTab(tab); } + mTabViews.remove(tab); } } @@ -239,6 +240,7 @@ public class NavScreen extends RelativeLayout public void onClick(View v) { if (tabview.isClose(v)) { mScroller.animateOut(tabview); + mTabViews.remove(tab); } else if (tabview.isTitle(v)) { switchToTab(tab); mUi.getTitleBar().setSkipTitleBarAnimations(true); |