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

Commit 61d06adb authored by Alex Salo's avatar Alex Salo
Browse files

Remove unnecessary permissions checks

These values could be obtained via SettingsProvider anyway, and there is no need to guard with the permission check. 

Change-Id: Ic49a355393ad8945342f0f7c83ff9550af6cd53f
Fixes: 174492282
Fixes: 174492248
parent 9402275c
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -594,8 +594,6 @@ public final class AutofillManagerService

    // Called by Shell command.
    int getMaxPartitions() {
        enforceCallingPermissionForManagement();

        synchronized (mLock) {
            return sPartitionMaxCount;
        }
@@ -628,8 +626,6 @@ public final class AutofillManagerService

    // Called by Shell command.
    int getMaxVisibleDatasets() {
        enforceCallingPermissionForManagement();

        synchronized (sLock) {
            return sVisibleDatasetsMaxCount;
        }