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:
@@ -48,7 +48,9 @@ class ConversationCoordinator @Inject constructor(
|
||||
val sectioner = object : NotifSectioner("People") {
|
||||
override fun isInSection(entry: ListEntry): Boolean =
|
||||
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) {
|
||||
|
||||
@@ -205,7 +205,11 @@ public class HeadsUpCoordinator implements Coordinator {
|
||||
@Nullable
|
||||
@Override
|
||||
public NodeController getHeaderNodeController() {
|
||||
return mIncomingHeaderController;
|
||||
// TODO: remove SHOW_ALL_SECTIONS, this redundant method, and mIncomingHeaderController
|
||||
if (RankingCoordinator.SHOW_ALL_SECTIONS) {
|
||||
return mIncomingHeaderController;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -41,6 +41,7 @@ import javax.inject.Inject;
|
||||
*/
|
||||
@SysUISingleton
|
||||
public class RankingCoordinator implements Coordinator {
|
||||
public static final boolean SHOW_ALL_SECTIONS = false;
|
||||
private final StatusBarStateController mStatusBarStateController;
|
||||
private final HighPriorityProvider mHighPriorityProvider;
|
||||
private final NodeController mSilentHeaderController;
|
||||
@@ -83,7 +84,11 @@ public class RankingCoordinator implements Coordinator {
|
||||
@Nullable
|
||||
@Override
|
||||
public NodeController getHeaderNodeController() {
|
||||
return mAlertingHeaderController;
|
||||
// TODO: remove SHOW_ALL_SECTIONS, this redundant method, and mAlertingHeaderController
|
||||
if (SHOW_ALL_SECTIONS) {
|
||||
return mAlertingHeaderController;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user