Automated import from //branches/master/...@141845,141845
This commit is contained in:
parent
2f8e96eb75
commit
02b4081b52
|
@ -412,7 +412,8 @@ public final class Launcher extends Activity implements View.OnClickListener, On
|
|||
intent.putExtra(Contacts.Intents.UI.FILTER_TEXT_EXTRA_KEY, str);
|
||||
}
|
||||
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK
|
||||
| Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
|
||||
|
||||
try {
|
||||
startActivity(intent);
|
||||
|
|
|
@ -505,7 +505,8 @@ public class LauncherProvider extends ContentProvider {
|
|||
ComponentName cn = new ComponentName(packageName, className);
|
||||
info = packageManager.getActivityInfo(cn, 0);
|
||||
intent.setComponent(cn);
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK
|
||||
| Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
|
||||
values.put(Favorites.INTENT, intent.toURI());
|
||||
values.put(Favorites.TITLE, info.loadLabel(packageManager).toString());
|
||||
values.put(Favorites.ITEM_TYPE, Favorites.ITEM_TYPE_APPLICATION);
|
||||
|
|
Loading…
Reference in New Issue