diff options
author | dianlujitao <dianlujitao@lineageos.org> | 2019-02-08 04:05:18 +0100 |
---|---|---|
committer | Paul Keith <javelinanddart@gmail.com> | 2019-02-22 22:51:39 +0100 |
commit | d84525d3e7a5f4ccf3833d9bc62a1681843b7c8b (patch) | |
tree | 257895d68237b7899329c90f67b5c1d03420b20d /sdm/DisplayModes.cpp | |
parent | 8d13803c5eaa56097b6b80f2568f198c6bbc5fb1 (diff) | |
download | android_hardware_lineage_livedisplay-d84525d3e7a5f4ccf3833d9bc62a1681843b7c8b.tar.gz android_hardware_lineage_livedisplay-d84525d3e7a5f4ccf3833d9bc62a1681843b7c8b.tar.bz2 android_hardware_lineage_livedisplay-d84525d3e7a5f4ccf3833d9bc62a1681843b7c8b.zip |
Revert "livedisplay: sdm: Fix restoring default mode"
This reverts commit 62d6ecd2d47aadf92cc4885eaa31ce0f07d4e07d.
The proper fix is setting vendor.display.enable_default_color_mode=1 as
advertised by CAF.
Change-Id: Ic443eb9e6164a59549dca221959e6fa98c408be8
Diffstat (limited to 'sdm/DisplayModes.cpp')
-rw-r--r-- | sdm/DisplayModes.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sdm/DisplayModes.cpp b/sdm/DisplayModes.cpp index 4ddd0eb..0cc900d 100644 --- a/sdm/DisplayModes.cpp +++ b/sdm/DisplayModes.cpp @@ -51,13 +51,6 @@ DisplayModes::DisplayModes(void* libHandle, uint64_t cookie) { disp_api_set_default_display_mode = reinterpret_cast<int32_t (*)(uint64_t, uint32_t, int32_t, uint32_t)>( dlsym(mLibHandle, "disp_api_set_default_display_mode")); - - if (isSupported()) { - DisplayMode mode = getDefaultDisplayModeInternal(); - if (mode.id >= 0) { - setDisplayMode(mode.id, false); - } - } } bool DisplayModes::isSupported() { |