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

Commit 2b98fb36 authored by Hai Zhang's avatar Hai Zhang
Browse files

Fix AppOpsService setUidMode() when mode is 0 (MODE_ALLOWED).

Previously the code was calling SparseIntArray.get() without checking
for indexOfKey() >= 0 first, which leads to a default value of 0 that
collides with MODE_ALLOWED. This fix adds the check before get() is
called.

Test: manual
Change-Id: I04c183d6cd60cd1ec0babf47b905592c2fb62d4d
parent 6c109c76
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment