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

Commit 835d116e authored by Danesh M's avatar Danesh M
Browse files

Proximity : Check proximity flags only if from native

Change-Id: Id1be619e638de6a45252d8390eab6e38bd5de5a7
(cherry picked from commit 2293e60c)
parent 2c327c7d
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1207,7 +1207,11 @@ public final class PowerManagerService extends IPowerManager.Stub
                }
            }
        };
        if (checkProximity) {
            runWithProximityCheck(r);
        } else {
            r.run();
        }
    }

    private void runWithProximityCheck(Runnable r) {