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

Commit 2293e60c authored by Danesh M's avatar Danesh M
Browse files

Proximity : Check proximity flags only if from native

Change-Id: Id1be619e638de6a45252d8390eab6e38bd5de5a7
parent 29891ff9
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -1207,7 +1207,11 @@ public final class PowerManagerService extends IPowerManager.Stub
                }
                }
            }
            }
        };
        };
        if (checkProximity) {
            runWithProximityCheck(r);
            runWithProximityCheck(r);
        } else {
            r.run();
        }
    }
    }


    private void runWithProximityCheck(Runnable r) {
    private void runWithProximityCheck(Runnable r) {