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

Skip to content
Commit b2bc651f authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

Callback startWatchingMode with the right op

... in case the op has a switchOp.

Some ops have a switch-op. This means the mode of this op is not unique
to this op but shared with the switch-op.

E.g. FINE_LOCATIONs switch-op is COARSE_LOCATION.

Before R when you registered a startWatchingMode for FINE_LOCATION the
callbacks actually came for COARSE_LOCATION. Now the callbacks will
actually come for FINE_LOCATION

This is a subtle API change, hence guarded by a target-api change-id.

Bug: 148180766
Test: atest CtsAppOpsTestCases:android.app.appops.cts.ForegroundModeTest
Change-Id: I6bcb6f4876e524da65dd54c1d9f5cf1ce14c396c
parent 463979ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment