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

Commit cafdfc74 authored by Alan Viverette's avatar Alan Viverette
Browse files

Fix typo in HAS_CURENT_PERMISSIONS_REQUEST_KEY

This is part of the Cider-G onboarding exercise.

Bug: 330144993
Change-Id: I64ec01c25b4c99215009b6f1fefa7b65d271ee4c
Test: N/A
parent 9138e506
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -793,7 +793,7 @@ public class Activity extends ContextThemeWrapper
    private static final String SAVED_DIALOGS_TAG = "android:savedDialogs";
    private static final String SAVED_DIALOG_KEY_PREFIX = "android:dialog_";
    private static final String SAVED_DIALOG_ARGS_KEY_PREFIX = "android:dialog_args_";
    private static final String HAS_CURENT_PERMISSIONS_REQUEST_KEY =
    private static final String HAS_CURRENT_PERMISSIONS_REQUEST_KEY =
            "android:hasCurrentPermissionsRequest";

    private static final String REQUEST_PERMISSIONS_WHO_PREFIX = "@android:requestPermissions:";
@@ -9095,14 +9095,14 @@ public class Activity extends ContextThemeWrapper

    private void storeHasCurrentPermissionRequest(Bundle bundle) {
        if (bundle != null && mHasCurrentPermissionsRequest) {
            bundle.putBoolean(HAS_CURENT_PERMISSIONS_REQUEST_KEY, true);
            bundle.putBoolean(HAS_CURRENT_PERMISSIONS_REQUEST_KEY, true);
        }
    }

    private void restoreHasCurrentPermissionRequest(Bundle bundle) {
        if (bundle != null) {
            mHasCurrentPermissionsRequest = bundle.getBoolean(
                    HAS_CURENT_PERMISSIONS_REQUEST_KEY, false);
                    HAS_CURRENT_PERMISSIONS_REQUEST_KEY, false);
        }
    }