New pipeline: remove non-silent section headers am: caf2293885

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16150086

Change-Id: Ia55e174aa26d4a4bb421f7d99bcb506e8236c452
This commit is contained in:
Jeff DeCew
2021-10-30 00:17:34 +00:00
committed by Automerger Merge Worker
3 changed files with 14 additions and 3 deletions

View File

@@ -48,7 +48,9 @@ class ConversationCoordinator @Inject constructor(
val sectioner = object : NotifSectioner("People") { val sectioner = object : NotifSectioner("People") {
override fun isInSection(entry: ListEntry): Boolean = override fun isInSection(entry: ListEntry): Boolean =
isConversation(entry.representativeEntry!!) isConversation(entry.representativeEntry!!)
override fun getHeaderNodeController() = peopleHeaderController override fun getHeaderNodeController() =
// TODO: remove SHOW_ALL_SECTIONS, this redundant method, and peopleHeaderController
if (RankingCoordinator.SHOW_ALL_SECTIONS) peopleHeaderController else null
} }
override fun attach(pipeline: NotifPipeline) { override fun attach(pipeline: NotifPipeline) {

View File

@@ -205,7 +205,11 @@ public class HeadsUpCoordinator implements Coordinator {
@Nullable @Nullable
@Override @Override
public NodeController getHeaderNodeController() { public NodeController getHeaderNodeController() {
return mIncomingHeaderController; // TODO: remove SHOW_ALL_SECTIONS, this redundant method, and mIncomingHeaderController
if (RankingCoordinator.SHOW_ALL_SECTIONS) {
return mIncomingHeaderController;
}
return null;
} }
}; };

View File

@@ -41,6 +41,7 @@ import javax.inject.Inject;
*/ */
@SysUISingleton @SysUISingleton
public class RankingCoordinator implements Coordinator { public class RankingCoordinator implements Coordinator {
public static final boolean SHOW_ALL_SECTIONS = false;
private final StatusBarStateController mStatusBarStateController; private final StatusBarStateController mStatusBarStateController;
private final HighPriorityProvider mHighPriorityProvider; private final HighPriorityProvider mHighPriorityProvider;
private final NodeController mSilentHeaderController; private final NodeController mSilentHeaderController;
@@ -83,7 +84,11 @@ public class RankingCoordinator implements Coordinator {
@Nullable @Nullable
@Override @Override
public NodeController getHeaderNodeController() { public NodeController getHeaderNodeController() {
return mAlertingHeaderController; // TODO: remove SHOW_ALL_SECTIONS, this redundant method, and mAlertingHeaderController
if (SHOW_ALL_SECTIONS) {
return mAlertingHeaderController;
}
return null;
} }
}; };