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

Commit add8be83 authored by Danesh M's avatar Danesh M
Browse files

Services : Ensure proximity check is taken into consideration

Only do the proximity check if explicitly being asked to do so.
This is a patch that was never ported from cm-11.0 :
2293e60c

issue-id: CYNGNOS-1223

Change-Id: Id1be619e638de6a45252d8390eab6e38bd5de5a7
(cherry picked from commit d64bc480)
parent 42d9ef1f
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -3262,7 +3262,11 @@ public final class PowerManagerService extends SystemService
                    }
                }
            };
            if (checkProximity) {
                runWithProximityCheck(r);
            } else {
                r.run();
            }
        }

        private void runWithProximityCheck(Runnable r) {