Merge "Avoid unnecessary ticker animation if already visible." into klp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
105b9b0504
@@ -2105,9 +2105,12 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void tickerHalting() {
|
public void tickerHalting() {
|
||||||
mStatusBarContents.setVisibility(View.VISIBLE);
|
if (mStatusBarContents.getVisibility() != View.VISIBLE) {
|
||||||
|
mStatusBarContents.setVisibility(View.VISIBLE);
|
||||||
|
mStatusBarContents
|
||||||
|
.startAnimation(loadAnim(com.android.internal.R.anim.fade_in, null));
|
||||||
|
}
|
||||||
mTickerView.setVisibility(View.GONE);
|
mTickerView.setVisibility(View.GONE);
|
||||||
mStatusBarContents.startAnimation(loadAnim(com.android.internal.R.anim.fade_in, null));
|
|
||||||
// we do not animate the ticker away at this point, just get rid of it (b/6992707)
|
// we do not animate the ticker away at this point, just get rid of it (b/6992707)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user