sdk: Try getting LineageHardwareService again before checking for it
Currently if LineageHardwareManager couldn't get LineageHardwareService on its first try, it stays disconnected and wouldn't retry in time. Several one-time isSupported() checks during boot would then fail, resulting in missing features e.g. HWC2-based LiveDisplay. Change-Id: I85e6866543798ed4a805db5c99a28ef8a39335cc
This commit is contained in:
@@ -807,6 +807,7 @@ public final class LineageHardwareManager {
|
||||
* @return true if service is valid
|
||||
*/
|
||||
private boolean checkService() {
|
||||
sService = getService();
|
||||
if (sService == null) {
|
||||
Log.w(TAG, "not connected to LineageHardwareManagerService");
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user