use of com.android.systemui.statusbar.ActivatableNotificationView in project android_frameworks_base by DirtyUnicorns.
the class NotificationStackScrollLayout method updateFirstAndLastBackgroundViews.
private void updateFirstAndLastBackgroundViews() {
ActivatableNotificationView firstChild = getFirstChildWithBackground();
ActivatableNotificationView lastChild = getLastChildWithBackground();
if (mAnimationsEnabled && mIsExpanded) {
mAnimateNextBackgroundTop = firstChild != mFirstVisibleBackgroundChild;
mAnimateNextBackgroundBottom = lastChild != mLastVisibleBackgroundChild;
} else {
mAnimateNextBackgroundTop = false;
mAnimateNextBackgroundBottom = false;
}
mFirstVisibleBackgroundChild = firstChild;
mLastVisibleBackgroundChild = lastChild;
}
use of com.android.systemui.statusbar.ActivatableNotificationView in project android_frameworks_base by AOSPA.
the class PhoneStatusBar method onActivated.
@Override
public void onActivated(ActivatableNotificationView view) {
EventLogTags.writeSysuiLockscreenGesture(EventLogConstants.SYSUI_LOCKSCREEN_GESTURE_TAP_NOTIFICATION_ACTIVATE, 0, /* lengthDp - N/A */
0);
mKeyguardIndicationController.showTransientIndication(R.string.notification_tap_again);
ActivatableNotificationView previousView = mStackScroller.getActivatedChild();
if (previousView != null) {
previousView.makeInactive(true);
}
mStackScroller.setActivatedChild(view);
}
use of com.android.systemui.statusbar.ActivatableNotificationView in project android_frameworks_base by ResurrectionRemix.
the class PhoneStatusBar method onActivated.
@Override
public void onActivated(ActivatableNotificationView view) {
EventLogTags.writeSysuiLockscreenGesture(EventLogConstants.SYSUI_LOCKSCREEN_GESTURE_TAP_NOTIFICATION_ACTIVATE, 0, /* lengthDp - N/A */
0);
mKeyguardIndicationController.showTransientIndication(R.string.notification_tap_again);
ActivatableNotificationView previousView = mStackScroller.getActivatedChild();
if (previousView != null) {
previousView.makeInactive(true);
}
mStackScroller.setActivatedChild(view);
}
use of com.android.systemui.statusbar.ActivatableNotificationView in project android_frameworks_base by ResurrectionRemix.
the class PhoneStatusBar method updateStackScrollerState.
public void updateStackScrollerState(boolean goingToFullShade, boolean fromShadeLocked) {
if (mStackScroller == null)
return;
boolean onKeyguard = mState == StatusBarState.KEYGUARD;
mStackScroller.setHideSensitive(isLockscreenPublicMode(), goingToFullShade);
mStackScroller.setDimmed(onKeyguard, fromShadeLocked);
mStackScroller.setExpandingEnabled(!onKeyguard);
ActivatableNotificationView activatedChild = mStackScroller.getActivatedChild();
mStackScroller.setActivatedChild(null);
if (activatedChild != null) {
activatedChild.makeInactive(false);
}
}
use of com.android.systemui.statusbar.ActivatableNotificationView in project android_frameworks_base by ResurrectionRemix.
the class NotificationStackScrollLayout method updateFirstAndLastBackgroundViews.
private void updateFirstAndLastBackgroundViews() {
ActivatableNotificationView firstChild = getFirstChildWithBackground();
ActivatableNotificationView lastChild = getLastChildWithBackground();
if (mAnimationsEnabled && mIsExpanded) {
mAnimateNextBackgroundTop = firstChild != mFirstVisibleBackgroundChild;
mAnimateNextBackgroundBottom = lastChild != mLastVisibleBackgroundChild;
} else {
mAnimateNextBackgroundTop = false;
mAnimateNextBackgroundBottom = false;
}
mFirstVisibleBackgroundChild = firstChild;
mLastVisibleBackgroundChild = lastChild;
}
Aggregations