Add controllers for default app shortcut preferences.
- add the default app shortcut preferences to the preference screen xml instead of creating them dynamically in the fragment. - add controller for each of the shortcut preference. - move the corresponding shortcut detail settings into the appinfo package. - add individual preference screen xml for the shortcut detail settings instead of using the shared screen template. Bug: 69384089 Test: make RunSettingsRoboTests Change-Id: I7bc0b3b727e87fb1a32a82291e64b8e290947671
This commit is contained in:
@@ -90,7 +90,7 @@ public class AppStateInstallAppsBridge extends AppStateBaseBridge {
|
||||
return mAppOpsManager.checkOpNoThrow(appOpCode, uid, packageName);
|
||||
}
|
||||
|
||||
InstallAppsState createInstallAppsStateFor(String packageName, int uid) {
|
||||
public InstallAppsState createInstallAppsStateFor(String packageName, int uid) {
|
||||
final InstallAppsState appState = new InstallAppsState();
|
||||
appState.permissionRequested = hasRequestedAppOpPermission(
|
||||
Manifest.permission.REQUEST_INSTALL_PACKAGES, packageName);
|
||||
|
Reference in New Issue
Block a user