OutdoorModeController: Advertise MODE_AUTO
* This capability is set by ColorTemperatureController on HWC1 which is not used on HWC2, but it controls whether to enable automatic outdoor mode, thus advertise it here. * Set the default mode back to MODE_AUTO. Change-Id: I2061cdb9ca5991e60dc9c4b3d566dd811c3c8936
This commit is contained in:
committed by
Michael Bestas
parent
0f5f0e25ca
commit
73fdcd14ac
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2016 The CyanogenMod Project
|
||||
* 2019 The LineageOS Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -84,6 +85,7 @@ public class OutdoorModeController extends LiveDisplayFeature {
|
||||
@Override
|
||||
public boolean getCapabilities(final BitSet caps) {
|
||||
if (mUseOutdoorMode) {
|
||||
caps.set(LiveDisplayManager.MODE_AUTO);
|
||||
caps.set(LiveDisplayManager.MODE_OUTDOOR);
|
||||
if (mSelfManaged) {
|
||||
caps.set(LiveDisplayManager.FEATURE_MANAGED_OUTDOOR_MODE);
|
||||
|
||||
Reference in New Issue
Block a user