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

Skip to content
Commit 8a3b1b18 authored by Zhou Song's avatar Zhou Song Committed by Gerrit - the friendly Code Review server
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 feba6ba3
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