summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/UrlHandler.java
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2011-07-19 11:56:56 -0700
committerMichael Kolb <kolby@google.com>2011-07-19 11:57:01 -0700
commite57c709438aec9d64e3de7eefd87f333fcd2ae7c (patch)
treeb70721e5f656e09be44fc0e955a94be6681f5af2 /src/com/android/browser/UrlHandler.java
parent20be26d3aaa0ba44a0258e6eb490303330109587 (diff)
downloadpackages_apps_browser-e57c709438aec9d64e3de7eefd87f333fcd2ae7c.zip
packages_apps_browser-e57c709438aec9d64e3de7eefd87f333fcd2ae7c.tar.gz
packages_apps_browser-e57c709438aec9d64e3de7eefd87f333fcd2ae7c.tar.bz2
ignore rlz task if browser is paused
Bug: 4575720 When the RLZ task wants to load the url, make sure browser is still running, otherwise ignore the task Change-Id: I74f491177e61435ea6a427e9b5a0d85d3854f27f
Diffstat (limited to 'src/com/android/browser/UrlHandler.java')
-rw-r--r--src/com/android/browser/UrlHandler.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/browser/UrlHandler.java b/src/com/android/browser/UrlHandler.java
index 17d4062..74a58f3 100644
--- a/src/com/android/browser/UrlHandler.java
+++ b/src/com/android/browser/UrlHandler.java
@@ -257,6 +257,8 @@ public class UrlHandler {
}
protected void onPostExecute(String result) {
+ // abort if we left browser already
+ if (mController.isActivityPaused()) return;
// Make sure the Tab was not closed while handling the task
if (mController.getTabControl().getTabPosition(mTab) != -1) {
// If the Activity Manager is not invoked, load the URL directly