diff options
author | Jorim Jaggi <jjaggi@google.com> | 2015-09-24 17:35:58 -0700 |
---|---|---|
committer | Jorim Jaggi <jjaggi@google.com> | 2015-09-25 01:30:56 +0000 |
commit | 3b3cbb5325e1a8bce09200644b5667fb321d9b90 (patch) | |
tree | a05a9a9f5bf7cefb988a7ace3a8e992e875ec29c /services | |
parent | ad26dc5f15d6ac13741ad8724c25ef8c58e73e81 (diff) | |
download | frameworks_base-3b3cbb5325e1a8bce09200644b5667fb321d9b90.zip frameworks_base-3b3cbb5325e1a8bce09200644b5667fb321d9b90.tar.gz frameworks_base-3b3cbb5325e1a8bce09200644b5667fb321d9b90.tar.bz2 |
Do not issue config change command when not needed
This caused a but where WindowManager was blocked on this to perform a
layout, leading to delays in screen wake-ups.
Bug: 24383169
Change-Id: I42bc08dae9057060f09c301328bb4839a970c597
Diffstat (limited to 'services')
-rw-r--r-- | services/core/java/com/android/server/display/LocalDisplayAdapter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/display/LocalDisplayAdapter.java b/services/core/java/com/android/server/display/LocalDisplayAdapter.java index be37f52..088d96e 100644 --- a/services/core/java/com/android/server/display/LocalDisplayAdapter.java +++ b/services/core/java/com/android/server/display/LocalDisplayAdapter.java @@ -544,7 +544,7 @@ final class LocalDisplayAdapter extends DisplayAdapter { physIndex = findDisplayInfoIndexLocked(colorTransformId, modeId); } } - if (physIndex > 0 && mActivePhysIndex == physIndex) { + if (mActivePhysIndex == physIndex) { return; } SurfaceControl.setActiveConfig(getDisplayTokenLocked(), physIndex); |