sdm845-common: Fix restoring default LiveDisplay mode

* Call DisplayModes::setDisplayMode(modeID, false) in the constructor
* Move sysfs nodes chown/chmod to from 'on boot' to on init' so that
  they have proper perms right away.

Change-Id: I51ee19136688f83703e85b76d5219e5a567bbaa3
This commit is contained in:
LuK1337
2019-06-17 11:44:28 +02:00
committed by Łukasz Patron
parent f0e0e8184e
commit 702507f7c0
2 changed files with 6 additions and 4 deletions

View File

@@ -53,6 +53,8 @@ DisplayModes::DisplayModes() : mDefaultModeId(0) {
break;
}
}
setDisplayMode(mDefaultModeId, false);
}
// Methods from ::vendor::lineage::livedisplay::V2_0::IDisplayModes follow.