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

Commit 087b5773 authored by Evan Severson's avatar Evan Severson
Browse files

Persist the one-time permission flag if set

This flag will now be used to show different ui if the permission has
been previously set as one-time

Test: Reboot and verify ui is consistent
Bug: 144389816
Change-Id: I86fb595b79819a604aaed613d9edf30c883d1440
parent cb2d2ec7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -246,7 +246,7 @@ public class RuntimePermissionsPersistenceImpl implements RuntimePermissionsPers
                    permissionState.isGranted() && (permissionState.getFlags()
                            & PackageManager.FLAG_PERMISSION_ONE_TIME) == 0));
            serializer.attribute(null, ATTRIBUTE_FLAGS, Integer.toHexString(
                    permissionState.getFlags() & ~PackageManager.FLAG_PERMISSION_ONE_TIME));
                    permissionState.getFlags()));
            serializer.endTag(null, TAG_PERMISSION);
        }
    }