Merge "Clear Linux terminal app when disabled" into main am: 005ee9761b am: c4d90bf739
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3332054 Change-Id: Ifc0064dd155a9b4d5faf55d496f6cba3ef097251 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -95,6 +95,10 @@ public class EnableLinuxTerminalPreferenceController extends BasePreferenceContr
|
||||
? PackageManager.COMPONENT_ENABLED_STATE_ENABLED
|
||||
: PackageManager.COMPONENT_ENABLED_STATE_DEFAULT;
|
||||
mPackageManager.setApplicationEnabledSetting(mTerminalPackageName, state, /* flags= */ 0);
|
||||
if (!isChecked) {
|
||||
mPackageManager.clearApplicationUserData(
|
||||
mTerminalPackageName, /* observer= */ null);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user