Fix DreamBackend to reflect purely the WhenToDream setting.
The getWhenToDreamSetting method should return purely the WhenToDream setting, and not the enabled setting. The enabled setting is now being displayed separately as a toggle in settings. Bug: 222360260 Test: locally on device Change-Id: I93b11a6ee70ea4fa07ce9413a358a9c51bf108be
This commit is contained in:
@@ -248,9 +248,6 @@ public class DreamBackend {
|
||||
}
|
||||
|
||||
public @WhenToDream int getWhenToDreamSetting() {
|
||||
if (!isEnabled()) {
|
||||
return NEVER;
|
||||
}
|
||||
return isActivatedOnDock() && isActivatedOnSleep() ? EITHER
|
||||
: isActivatedOnDock() ? WHILE_DOCKED
|
||||
: isActivatedOnSleep() ? WHILE_CHARGING
|
||||
|
||||
Reference in New Issue
Block a user