From e57c709438aec9d64e3de7eefd87f333fcd2ae7c Mon Sep 17 00:00:00 2001 From: Michael Kolb Date: Tue, 19 Jul 2011 11:56:56 -0700 Subject: 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 --- src/com/android/browser/UrlHandler.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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 -- cgit v1.1