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
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 @@
         }
 
         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