Merge "Fade in/out onboarding tips." into pi-dev
am: 668556cd47
Change-Id: I14a5762bc446eb4781de4ac95baec7f6b1c41c6d
This commit is contained in:
committed by
android-build-merger
commit
ebbf943c4c
@@ -317,15 +317,8 @@ public class RecentsOnboarding {
|
|||||||
mLayout.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
|
mLayout.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
|
||||||
|
|
||||||
mWindowManager.addView(mLayout, getWindowLayoutParams());
|
mWindowManager.addView(mLayout, getWindowLayoutParams());
|
||||||
int layoutHeight = mLayout.getHeight();
|
|
||||||
if (layoutHeight == 0) {
|
|
||||||
mLayout.measure(View.MeasureSpec.UNSPECIFIED, View.MeasureSpec.UNSPECIFIED);
|
|
||||||
layoutHeight = mLayout.getMeasuredHeight();
|
|
||||||
}
|
|
||||||
mLayout.setTranslationY(layoutHeight);
|
|
||||||
mLayout.setAlpha(0);
|
mLayout.setAlpha(0);
|
||||||
mLayout.animate()
|
mLayout.animate()
|
||||||
.translationY(0)
|
|
||||||
.alpha(1f)
|
.alpha(1f)
|
||||||
.withLayer()
|
.withLayer()
|
||||||
.setStartDelay(SHOW_DELAY_MS)
|
.setStartDelay(SHOW_DELAY_MS)
|
||||||
@@ -349,7 +342,6 @@ public class RecentsOnboarding {
|
|||||||
if (mLayoutAttachedToWindow) {
|
if (mLayoutAttachedToWindow) {
|
||||||
if (animate) {
|
if (animate) {
|
||||||
mLayout.animate()
|
mLayout.animate()
|
||||||
.translationY(mLayout.getHeight())
|
|
||||||
.alpha(0f)
|
.alpha(0f)
|
||||||
.withLayer()
|
.withLayer()
|
||||||
.setDuration(SHOW_HIDE_DURATION_MS)
|
.setDuration(SHOW_HIDE_DURATION_MS)
|
||||||
|
|||||||
Reference in New Issue
Block a user