Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cf4848b2 authored by Linus Tufvesson's avatar Linus Tufvesson Committed by Android (Google) Code Review
Browse files

Merge "Update Settings#canDrawOverlays"

parents d41834b6 01088524
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3061,7 +3061,9 @@ public final class Settings {
     */
    public static boolean canDrawOverlays(Context context) {
        return Settings.isCallingPackageAllowedToDrawOverlays(context, Process.myUid(),
                context.getOpPackageName(), false);
                context.getOpPackageName(), false) || context.checkSelfPermission(
                Manifest.permission.SYSTEM_APPLICATION_OVERLAY)
                == PackageManager.PERMISSION_GRANTED;
    }
    /**