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:
Sebastian Kaspari 2016-09-06 17:58:46 +02:00
Родитель 5d2aa966ca
Коммит 479c995830
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

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