Merge "Fix marquee animating in QuickSettings when invisible to user." into qt-dev
This commit is contained in:
@@ -21,6 +21,7 @@
|
|||||||
android:layout_below="@id/quick_status_bar_system_icons"
|
android:layout_below="@id/quick_status_bar_system_icons"
|
||||||
android:paddingStart="@dimen/status_bar_padding_start"
|
android:paddingStart="@dimen/status_bar_padding_start"
|
||||||
android:paddingEnd="@dimen/status_bar_padding_end"
|
android:paddingEnd="@dimen/status_bar_padding_end"
|
||||||
|
android:visibility="invisible"
|
||||||
android:theme="@style/QSHeaderTheme">
|
android:theme="@style/QSHeaderTheme">
|
||||||
|
|
||||||
<com.android.systemui.qs.QSHeaderInfoLayout
|
<com.android.systemui.qs.QSHeaderInfoLayout
|
||||||
|
|||||||
@@ -461,6 +461,11 @@ public class QuickStatusBarHeader extends RelativeLayout implements
|
|||||||
|
|
||||||
if (mHeaderTextContainerAlphaAnimator != null) {
|
if (mHeaderTextContainerAlphaAnimator != null) {
|
||||||
mHeaderTextContainerAlphaAnimator.setPosition(keyguardExpansionFraction);
|
mHeaderTextContainerAlphaAnimator.setPosition(keyguardExpansionFraction);
|
||||||
|
if (keyguardExpansionFraction > 0) {
|
||||||
|
mHeaderTextContainerView.setVisibility(VISIBLE);
|
||||||
|
} else {
|
||||||
|
mHeaderTextContainerView.setVisibility(INVISIBLE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (mPrivacyChipAlphaAnimator != null) {
|
if (mPrivacyChipAlphaAnimator != null) {
|
||||||
mPrivacyChip.setExpanded(expansionFraction > 0.5);
|
mPrivacyChip.setExpanded(expansionFraction > 0.5);
|
||||||
|
|||||||
@@ -48,6 +48,11 @@ public class AutoMarqueeTextView extends TextView {
|
|||||||
super(context, attrs, defStyleAttr, defStyleRes);
|
super(context, attrs, defStyleAttr, defStyleRes);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void onFinishInflate() {
|
||||||
|
onVisibilityAggregated(isVisibleToUser());
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onAttachedToWindow() {
|
protected void onAttachedToWindow() {
|
||||||
super.onAttachedToWindow();
|
super.onAttachedToWindow();
|
||||||
|
|||||||
Reference in New Issue
Block a user