Search in sources :

Example 6 with ActivatableNotificationView

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;
}
Also used : ActivatableNotificationView(com.android.systemui.statusbar.ActivatableNotificationView)

Example 7 with ActivatableNotificationView

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);
}
Also used : ActivatableNotificationView(com.android.systemui.statusbar.ActivatableNotificationView)

Example 8 with ActivatableNotificationView

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);
}
Also used : ActivatableNotificationView(com.android.systemui.statusbar.ActivatableNotificationView)

Example 9 with ActivatableNotificationView

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);
    }
}
Also used : ActivatableNotificationView(com.android.systemui.statusbar.ActivatableNotificationView)

Example 10 with ActivatableNotificationView

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;
}
Also used : ActivatableNotificationView(com.android.systemui.statusbar.ActivatableNotificationView)

Aggregations

ActivatableNotificationView (com.android.systemui.statusbar.ActivatableNotificationView)20 Paint (android.graphics.Paint)5