AppClone: Few fixes in Cloned Apps page.
- Trigger uninstall as clone user - Back navigation Test: manual Bug: 259022623 Change-Id: Ic9e0b20d371f6f0a5c70c84b3950e82ba43bc82e
This commit is contained in:
@@ -75,12 +75,13 @@ public class CloneBackend {
|
||||
* dialog to the user and handles actual uninstall.
|
||||
*/
|
||||
void uninstallClonedApp(String packageName, boolean allUsers, FragmentActivity activity) {
|
||||
// Create new intent to launch Uninstaller activity
|
||||
// Create new intent to launch Uninstaller activity.
|
||||
Uri packageUri = Uri.parse("package:" + packageName);
|
||||
Intent uninstallIntent = new Intent(Intent.ACTION_UNINSTALL_PACKAGE, packageUri);
|
||||
uninstallIntent.putExtra(Intent.EXTRA_UNINSTALL_ALL_USERS, allUsers);
|
||||
uninstallIntent.putExtra(Intent.EXTRA_USER, UserHandle.of(mCloneUserId));
|
||||
activity.startActivityForResult(uninstallIntent, 0);
|
||||
// Trigger uninstall as clone user.
|
||||
activity.startActivityAsUser(uninstallIntent, UserHandle.of(mCloneUserId));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user