Loading packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +3 −6 Original line number Diff line number Diff line Loading @@ -220,7 +220,7 @@ public abstract class BaseStatusBar extends SystemUI implements setZenMode(mode); final boolean show = Settings.Global.getInt(mContext.getContentResolver(), Settings.Global.LOCK_SCREEN_SHOW_NOTIFICATIONS, 1) != 0; setShowLockscreenNotifications(show); mShowLockscreenNotifications = show; } }; Loading Loading @@ -1423,7 +1423,8 @@ public abstract class BaseStatusBar extends SystemUI implements } private boolean shouldShowOnKeyguard(StatusBarNotification sbn) { return sbn.getNotification().priority >= Notification.PRIORITY_LOW; return mShowLockscreenNotifications && sbn.getNotification().priority >= Notification.PRIORITY_LOW; } protected void setZenMode(int mode) { Loading @@ -1432,10 +1433,6 @@ public abstract class BaseStatusBar extends SystemUI implements updateNotifications(); } protected void setShowLockscreenNotifications(boolean show) { mShowLockscreenNotifications = show; } protected abstract void haltTicker(); protected abstract void setAreThereNotifications(); protected abstract void updateNotifications(); Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +0 −8 Original line number Diff line number Diff line Loading @@ -536,12 +536,6 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, } }; @Override protected void setShowLockscreenNotifications(boolean show) { super.setShowLockscreenNotifications(show); updateStackScrollerState(); } @Override public void start() { mDisplay = ((WindowManager)mContext.getSystemService(Context.WINDOW_SERVICE)) Loading Loading @@ -3435,8 +3429,6 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, if (mStackScroller == null) return; boolean onKeyguard = mState == StatusBarState.KEYGUARD; mStackScroller.setDimmed(onKeyguard, false /* animate */); mStackScroller.setVisibility(!mShowLockscreenNotifications && onKeyguard ? View.INVISIBLE : View.VISIBLE); mStackScroller.setExpandingEnabled(!onKeyguard); ActivatableNotificationView activatedChild = mStackScroller.getActivatedChild(); mStackScroller.setActivatedChild(null); Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java +3 −6 Original line number Diff line number Diff line Loading @@ -220,7 +220,7 @@ public abstract class BaseStatusBar extends SystemUI implements setZenMode(mode); final boolean show = Settings.Global.getInt(mContext.getContentResolver(), Settings.Global.LOCK_SCREEN_SHOW_NOTIFICATIONS, 1) != 0; setShowLockscreenNotifications(show); mShowLockscreenNotifications = show; } }; Loading Loading @@ -1423,7 +1423,8 @@ public abstract class BaseStatusBar extends SystemUI implements } private boolean shouldShowOnKeyguard(StatusBarNotification sbn) { return sbn.getNotification().priority >= Notification.PRIORITY_LOW; return mShowLockscreenNotifications && sbn.getNotification().priority >= Notification.PRIORITY_LOW; } protected void setZenMode(int mode) { Loading @@ -1432,10 +1433,6 @@ public abstract class BaseStatusBar extends SystemUI implements updateNotifications(); } protected void setShowLockscreenNotifications(boolean show) { mShowLockscreenNotifications = show; } protected abstract void haltTicker(); protected abstract void setAreThereNotifications(); protected abstract void updateNotifications(); Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +0 −8 Original line number Diff line number Diff line Loading @@ -536,12 +536,6 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, } }; @Override protected void setShowLockscreenNotifications(boolean show) { super.setShowLockscreenNotifications(show); updateStackScrollerState(); } @Override public void start() { mDisplay = ((WindowManager)mContext.getSystemService(Context.WINDOW_SERVICE)) Loading Loading @@ -3435,8 +3429,6 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode, if (mStackScroller == null) return; boolean onKeyguard = mState == StatusBarState.KEYGUARD; mStackScroller.setDimmed(onKeyguard, false /* animate */); mStackScroller.setVisibility(!mShowLockscreenNotifications && onKeyguard ? View.INVISIBLE : View.VISIBLE); mStackScroller.setExpandingEnabled(!onKeyguard); ActivatableNotificationView activatedChild = mStackScroller.getActivatedChild(); mStackScroller.setActivatedChild(null); Loading