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:
Ankita Vyas
2022-12-13 09:49:56 +00:00
parent 23a91ff7d9
commit 3672fb4b85
7 changed files with 277 additions and 2 deletions

View File

@@ -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;
}
}