Merge "Don't register DndConditionCardController anymore" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
91c78e7223
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.settings.homepage.contextualcards.conditional;
|
||||
|
||||
import android.app.Flags;
|
||||
import android.content.Context;
|
||||
import android.util.Log;
|
||||
|
||||
@@ -153,7 +154,9 @@ public class ConditionManager {
|
||||
new BackgroundDataConditionController(mAppContext, this /* manager */));
|
||||
mCardControllers.add(new BatterySaverConditionController(mAppContext, this /* manager */));
|
||||
mCardControllers.add(new CellularDataConditionController(mAppContext, this /* manager */));
|
||||
mCardControllers.add(new DndConditionCardController(mAppContext, this /* manager */));
|
||||
if (!Flags.modesUi()) {
|
||||
mCardControllers.add(new DndConditionCardController(mAppContext, this /* manager */));
|
||||
}
|
||||
mCardControllers.add(new HotspotConditionController(mAppContext, this /* manager */));
|
||||
mCardControllers.add(new NightDisplayConditionController(mAppContext, this /* manager */));
|
||||
mCardControllers.add(new RingerVibrateConditionController(mAppContext, this /* manager */));
|
||||
|
||||
@@ -35,7 +35,7 @@ import com.android.settings.notification.zen.ZenModeSettings;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
// TODO: b/368247671 - Remove entirely when inlining MODES_UI
|
||||
public class DndConditionCardController implements ConditionalCardController {
|
||||
static final int ID = Objects.hash("DndConditionCardController");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user