am f1fff797: Merge "Add flag FLAG_ACTIVITY_RESET_TASK_IF_NEEDED in LauncherAppsService." into mnc-dev
* commit 'f1fff7976937d92bc7e0014d54cb071a509975dc': Add flag FLAG_ACTIVITY_RESET_TASK_IF_NEEDED in LauncherAppsService.
This commit is contained in:
@@ -271,7 +271,8 @@ public class LauncherAppsService extends SystemService {
|
||||
Intent launchIntent = new Intent(Intent.ACTION_MAIN);
|
||||
launchIntent.addCategory(Intent.CATEGORY_LAUNCHER);
|
||||
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());
|
||||
|
||||
long ident = Binder.clearCallingIdentity();
|
||||
@@ -470,4 +471,4 @@ public class LauncherAppsService extends SystemService {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user