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

Skip to content
Commit d132d938 authored by Zhou Song's avatar Zhou Song Committed by Steve Kondik
Browse files

Avoid duplicated calling to isRestricted to improve performance

isRestricted() is called every time in Play and setVolume API.
Then it introduces some latency here, the perfromance can be bad
especially when the APIs called multiple times.

Initialize the permission check result in constructor to avoid
calling to isRestricted.

CRs-Fixed: 812386

Change-Id: I1ce81d1723a6b29adf4117ac0ccb7a98850ef2dd
parent 0defcbe9
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