summaryrefslogtreecommitdiff
path: root/src/com/android/browser/Controller.java
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2011-08-04 16:54:31 -0700
committerMichael Kolb <kolby@google.com>2011-08-05 09:57:32 -0700
commite28b347fcc1df6e6bd41cb294d521a4f1e7c5c75 (patch)
treef4cefe11ff78dbca0b2525fb56e4b707c5d55d65 /src/com/android/browser/Controller.java
parentedd390b6e1448a206f514d97c8ff1fcfb58773bd (diff)
close external tabs on back
Bug: 4466495 close externally created tabs when the back button is used and no further back history is available Change-Id: If605474d929fb759226a1e1f4125bfaab43e6653
Diffstat (limited to 'src/com/android/browser/Controller.java')
-rw-r--r--src/com/android/browser/Controller.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/browser/Controller.java b/src/com/android/browser/Controller.java
index 142375dd..89b700b4 100644
--- a/src/com/android/browser/Controller.java
+++ b/src/com/android/browser/Controller.java
@@ -2415,6 +2415,9 @@ public class Controller
// Now we close the other tab
closeTab(current);
} else {
+ if ((current.getAppId() != null) || current.closeOnBack()) {
+ closeCurrentTab();
+ }
/*
* Instead of finishing the activity, simply push this to the back
* of the stack and let ActivityManager to choose the foreground