AppClone: Changes in AppInfo page for cloned app.
- Hides preferences for cloneable apps under Cloned Apps page - Displays Create option for cloneable apps under Cloned Apps page. - Invokes CloneBackend on click of create and refreshes to display newly cloned app's AppInfo page. - Appends suffix 'clone' for cloneable/cloned app. - Displays text 'Delete' instead of 'uninstall'. Screencast: https://screencast.googleplex.com/cast/NjI3MDEyMjk1MzAxNTI5NnxhOTIxZDhiZC03Zg Bug: 262375058 Test: make RunSettingsRoboTests -j64 Change-Id: I34018f6cc7420d2667c25fbca59c832b398d723e
This commit is contained in:
@@ -90,7 +90,7 @@ public class CloneBackend {
|
||||
* @param packageName
|
||||
* @return error/success code
|
||||
*/
|
||||
int installCloneApp(String packageName) {
|
||||
public int installCloneApp(String packageName) {
|
||||
String userName = "cloneUser";
|
||||
UserHandle cloneUserHandle = null;
|
||||
boolean newlyCreated = false;
|
||||
@@ -160,4 +160,8 @@ public class CloneBackend {
|
||||
}
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
public int getCloneUserId() {
|
||||
return mCloneUserId;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user