diff options
author | Michael Kolb <kolby@google.com> | 2011-07-19 11:56:56 -0700 |
---|---|---|
committer | Michael Kolb <kolby@google.com> | 2011-07-19 11:57:01 -0700 |
commit | e57c709438aec9d64e3de7eefd87f333fcd2ae7c (patch) | |
tree | b70721e5f656e09be44fc0e955a94be6681f5af2 | |
parent | 20be26d3aaa0ba44a0258e6eb490303330109587 (diff) | |
download | packages_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
-rw-r--r-- | src/com/android/browser/UrlHandler.java | 2 |
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 |