зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1216333 - Check SKIP_TAB_QUEUE_FLAG before showing Tab Queue prompt. r=mcomella
--HG-- extra : commitid : F7R1Ux3IJu1 extra : rebase_source : 1c4df6e4d3c1e30b7884d9377927fcf9bb1c597f
This commit is contained in:
Родитель
f78b6c3cc9
Коммит
4164903cda
|
@ -15,6 +15,7 @@ import org.mozilla.gecko.Tabs.TabEvents;
|
|||
import org.mozilla.gecko.animation.PropertyAnimator;
|
||||
import org.mozilla.gecko.animation.TransitionsTracker;
|
||||
import org.mozilla.gecko.animation.ViewHelper;
|
||||
import org.mozilla.gecko.db.BrowserContract;
|
||||
import org.mozilla.gecko.db.BrowserContract.Combined;
|
||||
import org.mozilla.gecko.db.BrowserDB;
|
||||
import org.mozilla.gecko.db.SuggestedSites;
|
||||
|
@ -3567,6 +3568,7 @@ public class BrowserApp extends GeckoApp
|
|||
// We only want to show the prompt if the browser has been opened from an external url
|
||||
if (TabQueueHelper.TAB_QUEUE_ENABLED && mInitialized
|
||||
&& Intent.ACTION_VIEW.equals(intent.getAction())
|
||||
&& !intent.getBooleanExtra(BrowserContract.SKIP_TAB_QUEUE_FLAG, false)
|
||||
&& TabQueueHelper.shouldShowTabQueuePrompt(BrowserApp.this)) {
|
||||
Intent promptIntent = new Intent(BrowserApp.this, TabQueuePrompt.class);
|
||||
startActivityForResult(promptIntent, ACTIVITY_REQUEST_TAB_QUEUE);
|
||||
|
|
Загрузка…
Ссылка в новой задаче