Merge "Update statusViewCentered after reinflation" into sc-v2-dev am: 9ecf739f8f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15557288 Change-Id: I096b43dd100f65ff0c158ea392c91641c8f34c3a
This commit is contained in:
@@ -649,7 +649,7 @@ public class NotificationPanelViewController extends PanelViewController {
|
|||||||
|
|
||||||
private KeyguardMediaController mKeyguardMediaController;
|
private KeyguardMediaController mKeyguardMediaController;
|
||||||
|
|
||||||
private boolean mStatusViewCentered = false;
|
private boolean mStatusViewCentered = true;
|
||||||
|
|
||||||
private View.AccessibilityDelegate mAccessibilityDelegate = new View.AccessibilityDelegate() {
|
private View.AccessibilityDelegate mAccessibilityDelegate = new View.AccessibilityDelegate() {
|
||||||
@Override
|
@Override
|
||||||
@@ -1079,7 +1079,7 @@ public class NotificationPanelViewController extends PanelViewController {
|
|||||||
constraintSet.applyTo(mNotificationContainerParent);
|
constraintSet.applyTo(mNotificationContainerParent);
|
||||||
mNotificationContainerParent.setSplitShadeEnabled(mShouldUseSplitNotificationShade);
|
mNotificationContainerParent.setSplitShadeEnabled(mShouldUseSplitNotificationShade);
|
||||||
|
|
||||||
updateKeyguardStatusViewAlignment(false /* animate */);
|
updateKeyguardStatusViewAlignment(/* animate= */false);
|
||||||
mLockscreenSmartspaceController.onSplitShadeChanged(mShouldUseSplitNotificationShade);
|
mLockscreenSmartspaceController.onSplitShadeChanged(mShouldUseSplitNotificationShade);
|
||||||
mKeyguardMediaController.refreshMediaPosition();
|
mKeyguardMediaController.refreshMediaPosition();
|
||||||
}
|
}
|
||||||
@@ -1126,6 +1126,9 @@ public class NotificationPanelViewController extends PanelViewController {
|
|||||||
keyguardStatusView = (KeyguardStatusView) mLayoutInflater.inflate(
|
keyguardStatusView = (KeyguardStatusView) mLayoutInflater.inflate(
|
||||||
R.layout.keyguard_status_view, mNotificationContainerParent, false);
|
R.layout.keyguard_status_view, mNotificationContainerParent, false);
|
||||||
mNotificationContainerParent.addView(keyguardStatusView, statusIndex);
|
mNotificationContainerParent.addView(keyguardStatusView, statusIndex);
|
||||||
|
// When it's reinflated, this is centered by default. If it shouldn't be, this will update
|
||||||
|
// below when resources are updated.
|
||||||
|
mStatusViewCentered = true;
|
||||||
attachSplitShadeMediaPlayerContainer(
|
attachSplitShadeMediaPlayerContainer(
|
||||||
keyguardStatusView.findViewById(R.id.status_view_media_container));
|
keyguardStatusView.findViewById(R.id.status_view_media_container));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user