summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--services/core/java/com/android/server/dreams/DreamManagerService.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/dreams/DreamManagerService.java b/services/core/java/com/android/server/dreams/DreamManagerService.java
index 7d1dbe1..c986e74 100644
--- a/services/core/java/com/android/server/dreams/DreamManagerService.java
+++ b/services/core/java/com/android/server/dreams/DreamManagerService.java
@@ -247,6 +247,9 @@ public final class DreamManagerService extends SystemService {
private void setLidStateInternal(int state) {
synchronized (mLock) {
+ if (mLidState == state) {
+ return;
+ }
mLidState = state;
}
switch (state) {