mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 08:56:55 +00:00
Merge "Default screen context permissions for NIU Actions" into sc-dev am: c31a3da25c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/14510900 Change-Id: Idf4b74cb15803602430c6ec0e6635619213cc078
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user