Fix QS animation visibility issue on lockscreen
Change-Id: I4ed417051b1efe23952b20a993830ba06f8faee7 Fixes: 27616176
This commit is contained in:
@@ -64,6 +64,7 @@ public class QSAnimator implements Callback, PageListener, Listener, OnLayoutCha
|
|||||||
private boolean mAllowFancy;
|
private boolean mAllowFancy;
|
||||||
private boolean mFullRows;
|
private boolean mFullRows;
|
||||||
private int mNumQuickTiles;
|
private int mNumQuickTiles;
|
||||||
|
private float mLastPosition;
|
||||||
|
|
||||||
public QSAnimator(QSContainer container, QuickQSPanel quickPanel, QSPanel panel) {
|
public QSAnimator(QSContainer container, QuickQSPanel quickPanel, QSPanel panel) {
|
||||||
mQsContainer = container;
|
mQsContainer = container;
|
||||||
@@ -260,6 +261,7 @@ public class QSAnimator implements Callback, PageListener, Listener, OnLayoutCha
|
|||||||
if (mOnKeyguard) {
|
if (mOnKeyguard) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
mLastPosition = position;
|
||||||
if (mOnFirstPage && mAllowFancy) {
|
if (mOnFirstPage && mAllowFancy) {
|
||||||
mQuickQsPanel.setAlpha(1);
|
mQuickQsPanel.setAlpha(1);
|
||||||
mFirstPageAnimator.setPosition(position);
|
mFirstPageAnimator.setPosition(position);
|
||||||
@@ -300,7 +302,7 @@ public class QSAnimator implements Callback, PageListener, Listener, OnLayoutCha
|
|||||||
private void clearAnimationState() {
|
private void clearAnimationState() {
|
||||||
final int N = mAllViews.size();
|
final int N = mAllViews.size();
|
||||||
mQuickQsPanel.setAlpha(0);
|
mQuickQsPanel.setAlpha(0);
|
||||||
mQuickQsPanel.setVisibility(View.INVISIBLE);
|
mQuickQsPanel.setVisibility(View.VISIBLE);
|
||||||
for (int i = 0; i < N; i++) {
|
for (int i = 0; i < N; i++) {
|
||||||
View v = mAllViews.get(i);
|
View v = mAllViews.get(i);
|
||||||
v.setAlpha(1);
|
v.setAlpha(1);
|
||||||
@@ -338,6 +340,7 @@ public class QSAnimator implements Callback, PageListener, Listener, OnLayoutCha
|
|||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
updateAnimators();
|
updateAnimators();
|
||||||
|
setPosition(mLastPosition);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user