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

Commit 476910fd authored by Billy Lau's avatar Billy Lau Committed by Android Git Automerger
Browse files

am b4cb66cd: am 0e7b3420: am 8b095b1c: am f83e8526: am 5680f9f6: Merge "Bug:...

am b4cb66cd: am 0e7b3420: am 8b095b1c: am f83e8526: am 5680f9f6: Merge "Bug: 22879202 App compatibility with WRITE_SETTINGS failing" into mnc-dev

* commit 'b4cb66cd':
  Bug: 22879202 App compatibility with WRITE_SETTINGS failing
parents 396a4820 b4cb66cd
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -8346,9 +8346,9 @@ public final class Settings {
                return true;
            case AppOpsManager.MODE_DEFAULT:
                // this is the default operating mode after an app's installation
                if (!throwException) {
                    return context.checkCallingOrSelfPermission(permissionName) ==
                        PackageManager.PERMISSION_GRANTED;
                if(context.checkCallingOrSelfPermission(permissionName) == PackageManager
                        .PERMISSION_GRANTED) {
                    return true;
                }
            default:
                // this is for all other cases trickled down here...