Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable app copying preference when the user has DISALLOW_INSTALL_APP…
Browse files Browse the repository at this point in the history
…S restriction
quh4gko8 authored and thestinger committed Jul 26, 2023
1 parent 9312b4b commit 10a3b94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/com/android/settings/users/UserDetailsSettings.java
Original file line number Diff line number Diff line change
@@ -132,6 +132,7 @@ public void onResume() {
}
mAppsInstallsPref.setSummary(UserAppsInstallSettings.getDescription(
requireContext(), userRestrictions));
mAppCopyingPref.setEnabled(!userRestrictions.isSet(UserManager.DISALLOW_INSTALL_APPS));
}

@Override

0 comments on commit 10a3b94

Please sign in to comment.