Merge "DO NOT MERGE: Fixed an issue where the notification icons wouldn't show while docked" into qt-dev
This commit is contained in:
@@ -88,6 +88,7 @@ import com.android.systemui.R;
|
|||||||
import com.android.systemui.SwipeHelper;
|
import com.android.systemui.SwipeHelper;
|
||||||
import com.android.systemui.classifier.FalsingManagerFactory;
|
import com.android.systemui.classifier.FalsingManagerFactory;
|
||||||
import com.android.systemui.colorextraction.SysuiColorExtractor;
|
import com.android.systemui.colorextraction.SysuiColorExtractor;
|
||||||
|
import com.android.systemui.doze.DozeLog;
|
||||||
import com.android.systemui.plugins.ActivityStarter;
|
import com.android.systemui.plugins.ActivityStarter;
|
||||||
import com.android.systemui.plugins.FalsingManager;
|
import com.android.systemui.plugins.FalsingManager;
|
||||||
import com.android.systemui.plugins.statusbar.NotificationMenuRowPlugin;
|
import com.android.systemui.plugins.statusbar.NotificationMenuRowPlugin;
|
||||||
@@ -506,6 +507,7 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd
|
|||||||
* If the {@link NotificationShelf} should be visible when dark.
|
* If the {@link NotificationShelf} should be visible when dark.
|
||||||
*/
|
*/
|
||||||
private boolean mAnimateBottomOnLayout;
|
private boolean mAnimateBottomOnLayout;
|
||||||
|
private int mPulseReason;
|
||||||
|
|
||||||
@Inject
|
@Inject
|
||||||
public NotificationStackScrollLayout(
|
public NotificationStackScrollLayout(
|
||||||
@@ -1355,7 +1357,8 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd
|
|||||||
mIsClipped = clipped;
|
mIsClipped = clipped;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!mPulsing && mAmbientState.isFullyDark()) {
|
if ((!mPulsing || mPulseReason == DozeLog.PULSE_REASON_DOCKING)
|
||||||
|
&& mAmbientState.isFullyDark()) {
|
||||||
setClipBounds(null);
|
setClipBounds(null);
|
||||||
} else if (mAmbientState.isDarkAtAll()) {
|
} else if (mAmbientState.isDarkAtAll()) {
|
||||||
clipToOutline = true;
|
clipToOutline = true;
|
||||||
@@ -5179,6 +5182,11 @@ public class NotificationStackScrollLayout extends ViewGroup implements ScrollAd
|
|||||||
notifyHeightChangeListener(null, animated);
|
notifyHeightChangeListener(null, animated);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setPulseReason(int pulseReason) {
|
||||||
|
mPulseReason = pulseReason;
|
||||||
|
updateClipping();
|
||||||
|
}
|
||||||
|
|
||||||
@ShadeViewRefactor(RefactorComponent.SHADE_VIEW)
|
@ShadeViewRefactor(RefactorComponent.SHADE_VIEW)
|
||||||
public void setQsExpanded(boolean qsExpanded) {
|
public void setQsExpanded(boolean qsExpanded) {
|
||||||
mQsExpanded = qsExpanded;
|
mQsExpanded = qsExpanded;
|
||||||
|
|||||||
@@ -3134,6 +3134,10 @@ public class NotificationPanelView extends PanelView implements
|
|||||||
mAnimateNextPositionUpdate = true;
|
mAnimateNextPositionUpdate = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setPulseReason(int reason) {
|
||||||
|
mNotificationStackScroller.setPulseReason(reason);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Panel and QS expansion callbacks.
|
* Panel and QS expansion callbacks.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -3928,6 +3928,7 @@ public class StatusBar extends SystemUI implements DemoMode,
|
|||||||
// execute the transition. The pulse callback will then be invoked when the scrims
|
// execute the transition. The pulse callback will then be invoked when the scrims
|
||||||
// are black, indicating that StatusBar is ready to present the rest of the UI.
|
// are black, indicating that StatusBar is ready to present the rest of the UI.
|
||||||
mPulsing = true;
|
mPulsing = true;
|
||||||
|
mNotificationPanel.setPulseReason(reason);
|
||||||
mDozeScrimController.pulse(new PulseCallback() {
|
mDozeScrimController.pulse(new PulseCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onPulseStarted() {
|
public void onPulseStarted() {
|
||||||
|
|||||||
Reference in New Issue
Block a user