Merge "Revert "Re-add notification history tunable""
This commit is contained in:
committed by
Android (Google) Code Review
commit
18bb65458d
@@ -3355,8 +3355,8 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd
|
||||
|
||||
@ShadeViewRefactor(RefactorComponent.COORDINATOR)
|
||||
void onViewAddedInternal(ExpandableView child) {
|
||||
updateHideSensitiveForChild(child);
|
||||
child.setOnHeightChangedListener(mOnChildHeightChangedListener);
|
||||
updateHideSensitiveForChild(child);
|
||||
generateAddAnimation(child, false /* fromMoreCard */);
|
||||
updateAnimationState(child);
|
||||
updateChronometerForChild(child);
|
||||
|
||||
@@ -95,16 +95,11 @@ public class NotificationStackScrollLayoutController {
|
||||
mNotificationRoundnessManager.setOnRoundingChangedCallback(mView::invalidate);
|
||||
mView.addOnExpandedHeightChangedListener(mNotificationRoundnessManager::setExpanded);
|
||||
|
||||
mTunerService.addTunable(
|
||||
(key, newValue) -> {
|
||||
if (key.equals(Settings.Secure.NOTIFICATION_DISMISS_RTL)) {
|
||||
mView.updateDismissRtlSetting("1".equals(newValue));
|
||||
} else if (key.equals(Settings.Secure.NOTIFICATION_HISTORY_ENABLED)) {
|
||||
updateFooter();
|
||||
}
|
||||
},
|
||||
Settings.Secure.NOTIFICATION_DISMISS_RTL,
|
||||
Settings.Secure.NOTIFICATION_HISTORY_ENABLED);
|
||||
mTunerService.addTunable((key, newValue) -> {
|
||||
if (key.equals(Settings.Secure.NOTIFICATION_DISMISS_RTL)) {
|
||||
mView.updateDismissRtlSetting("1".equals(newValue));
|
||||
}
|
||||
}, HIGH_PRIORITY, Settings.Secure.NOTIFICATION_DISMISS_RTL);
|
||||
}
|
||||
|
||||
public void addOnExpandedHeightChangedListener(BiConsumer<Float, Float> listener) {
|
||||
|
||||
Reference in New Issue
Block a user