зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1280112 - LauncherActivity: Remove task flags from incoming intent. r=ahunt
MozReview-Commit-ID: 8ufNtiMc1sj --HG-- extra : rebase_source : afa106835f508b809294a4af096893ea87980851
This commit is contained in:
Родитель
5d2aa966ca
Коммит
479c995830
|
@ -68,6 +68,12 @@ public class LauncherActivity extends Activity {
|
|||
private void dispatchNormalIntent() {
|
||||
Intent intent = new Intent(getIntent());
|
||||
intent.setClassName(getApplicationContext(), AppConstants.MOZ_ANDROID_BROWSER_INTENT_CLASS);
|
||||
|
||||
// Explicitly remove the new task and clear task flags (Our browser activity is a single
|
||||
// task activity and we never want to start a second task here). See bug 1280112.
|
||||
intent.setFlags(intent.getFlags() & ~Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
intent.setFlags(intent.getFlags() & ~Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
||||
|
||||
startActivity(intent);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче