From e8fffdb5a9b0f29b197ddb952d72bf3a23cb829b Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Fri, 24 May 2019 23:51:02 +0200 Subject: [PATCH] hidl: livedisplay: Restore default display mode in DisplayModes constructor Change-Id: I5a6303f7f67a8b6d35663d2d86346d585f367cd3 --- lineagehw/hidl/livedisplay/DisplayModes.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lineagehw/hidl/livedisplay/DisplayModes.cpp b/lineagehw/hidl/livedisplay/DisplayModes.cpp index 113905ee..03d713ea 100644 --- a/lineagehw/hidl/livedisplay/DisplayModes.cpp +++ b/lineagehw/hidl/livedisplay/DisplayModes.cpp @@ -56,6 +56,8 @@ DisplayModes::DisplayModes() : mDefaultModeId(0) { break; } } + + setDisplayMode(mDefaultModeId, false); } bool DisplayModes::isSupported() {