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

Commit 23f2543c authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Handle null in Activity#requestPermissions optimization" into main

parents 61bf4eb0 11ad5850
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -5834,8 +5834,12 @@ public class Activity extends ContextThemeWrapper
        final int size = permissions.length;
        int[] results = new int[size];
        for (int i = 0; i < size; i++) {
            if (permissions[i] == null) {
                results[i] = Context.PERMISSION_REQUEST_STATE_UNREQUESTABLE;
            } else {
                results[i] = deviceContext.getPermissionRequestState(permissions[i]);
            }
        }
        return results;
    }