Merge "Default screen context permissions for NIU Actions" into sc-dev am: c31a3da25c am: 8ebf6b86ab

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14510900

Change-Id: Ifd5d3bfa037cac1f9e79da0873c863b31f652ee8
This commit is contained in:
Rajeev Kumar
2021-05-12 17:14:19 +00:00
committed by Automerger Merge Worker

View File

@@ -170,9 +170,9 @@ public final class TaskOverlayFactoryGo extends TaskOverlayFactory {
public void checkPermissions() {
ContentResolver contentResolver = mApplicationContext.getContentResolver();
boolean structureEnabled = Settings.Secure.getInt(contentResolver,
Settings.Secure.ASSIST_STRUCTURE_ENABLED, 0) != 0;
Settings.Secure.ASSIST_STRUCTURE_ENABLED, 1) != 0;
boolean screenshotEnabled = Settings.Secure.getInt(contentResolver,
Settings.Secure.ASSIST_SCREENSHOT_ENABLED, 0) != 0;
Settings.Secure.ASSIST_SCREENSHOT_ENABLED, 1) != 0;
mAssistPermissionsEnabled = structureEnabled && screenshotEnabled;
}