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

Commit 6aa0841b authored by Sadrul Chowdhury's avatar Sadrul Chowdhury
Browse files

Avoid unnecessary binder calls during app-startup.

Check local state `mShouldUseAngle` before calling into `shouldShowAngleInUseDialogBox`, which does a binder call for
`IContentProvider`. This avoids an unnecessary binder call during the
app-start critical path.

Bug: 372223328
Flag: EXEMPT bugfix

Change-Id: Id03c554526f1c64a944d572201a3a71b513f0e4d
parent bdbeef9e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -706,11 +706,11 @@ public class GraphicsEnvironment {
     * @param context
     */
    public void showAngleInUseDialogBox(Context context) {
        if (!shouldShowAngleInUseDialogBox(context)) {
        if (!mShouldUseAngle) {
            return;
        }

        if (!mShouldUseAngle) {
        if (!shouldShowAngleInUseDialogBox(context)) {
            return;
        }