am 26b5ec6b: am f1fff797: Merge "Add flag FLAG_ACTIVITY_RESET_TASK_IF_NEEDED in LauncherAppsService." into mnc-dev

* commit '26b5ec6bddb7ae406eda74c7a539195a5520b6b8':
  Add flag FLAG_ACTIVITY_RESET_TASK_IF_NEEDED in LauncherAppsService.
This commit is contained in:
Nicolas Prevot
2015-06-29 13:57:41 +00:00
committed by Android Git Automerger

View File

@@ -271,7 +271,8 @@ public class LauncherAppsService extends SystemService {
Intent launchIntent = new Intent(Intent.ACTION_MAIN); Intent launchIntent = new Intent(Intent.ACTION_MAIN);
launchIntent.addCategory(Intent.CATEGORY_LAUNCHER); launchIntent.addCategory(Intent.CATEGORY_LAUNCHER);
launchIntent.setSourceBounds(sourceBounds); launchIntent.setSourceBounds(sourceBounds);
launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK
| Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
launchIntent.setPackage(component.getPackageName()); launchIntent.setPackage(component.getPackageName());
long ident = Binder.clearCallingIdentity(); long ident = Binder.clearCallingIdentity();