commit | 7998c557e7f6a8749052f5bd7d7251dbc21d10ce | [log] [tgz] |
---|---|---|
author | jhenrique09 <jhenrique09.mcz@hotmail.com> | Fri Jul 05 20:27:23 2019 -0300 |
committer | Rashed Abdel-Tawab <rashedabdeltawab@gmail.com> | Mon Jul 08 03:19:45 2019 +0200 |
tree | b1d397158cf98890706bc55133ed9e2a5f8dfc7b | |
parent | 88aeb2cbd32ea61c0b8d38ca08b472c7ab015ef2 [diff] |
LiveDisplaySettings: Fix outdoor mode preference on hwc2 Change-Id: I7ecbc68cb7bc2eb70544f8f5bc3e3d9d2943e4d7
diff --git a/src/org/lineageos/lineageparts/livedisplay/LiveDisplaySettings.java b/src/org/lineageos/lineageparts/livedisplay/LiveDisplaySettings.java index 7205a51..4d6512a 100644 --- a/src/org/lineageos/lineageparts/livedisplay/LiveDisplaySettings.java +++ b/src/org/lineageos/lineageparts/livedisplay/LiveDisplaySettings.java
@@ -310,6 +310,9 @@ } private void updateModeSummary() { + if (ColorDisplayController.isAvailable(getContext())) { + return; // Do nothing if device has hwc2 support + } int mode = mLiveDisplayManager.getMode(); int index = ArrayUtils.indexOf(mModeValues, String.valueOf(mode));