diff options
Diffstat (limited to 'src/com/android/browser/IntentHandler.java')
-rw-r--r-- | src/com/android/browser/IntentHandler.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/com/android/browser/IntentHandler.java b/src/com/android/browser/IntentHandler.java index 6ed5b72..c76197d 100644 --- a/src/com/android/browser/IntentHandler.java +++ b/src/com/android/browser/IntentHandler.java @@ -17,10 +17,6 @@ package com.android.browser; -import com.android.browser.search.SearchEngine; -import com.android.common.Search; -import com.android.common.speech.LoggingEvents; - import android.app.Activity; import android.app.SearchManager; import android.content.ContentResolver; @@ -36,6 +32,10 @@ import android.speech.RecognizerResultsIntent; import android.text.TextUtils; import android.util.Patterns; +import com.android.browser.search.SearchEngine; +import com.android.common.Search; +import com.android.common.speech.LoggingEvents; + import java.util.HashMap; import java.util.Iterator; import java.util.Map; @@ -187,6 +187,9 @@ public class IntentHandler { Tab tab = mController.openTab(urlData); if (tab != null) { tab.setAppId(appId); + if ((intent.getFlags() & Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT) != 0) { + tab.setCloseOnBack(true); + } } } } else { |