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
Loading
Please register or sign in to comment