Merge "Fix customizer state" into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3aa9980879
@@ -104,4 +104,13 @@ public class QSDetailClipper {
|
|||||||
public void showBackground() {
|
public void showBackground() {
|
||||||
mBackground.showSecondLayer();
|
mBackground.showSecondLayer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Cancels the animator if it's running.
|
||||||
|
*/
|
||||||
|
public void cancelAnimator() {
|
||||||
|
if (mAnimator != null) {
|
||||||
|
mAnimator.cancel();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -208,6 +208,7 @@ public class QSCustomizer extends LinearLayout implements OnMenuItemClickListene
|
|||||||
public void showImmediately() {
|
public void showImmediately() {
|
||||||
if (!isShown) {
|
if (!isShown) {
|
||||||
setVisibility(VISIBLE);
|
setVisibility(VISIBLE);
|
||||||
|
mClipper.cancelAnimator();
|
||||||
mClipper.showBackground();
|
mClipper.showBackground();
|
||||||
isShown = true;
|
isShown = true;
|
||||||
setTileSpecs();
|
setTileSpecs();
|
||||||
@@ -230,6 +231,10 @@ public class QSCustomizer extends LinearLayout implements OnMenuItemClickListene
|
|||||||
mUiEventLogger.log(QSEditEvent.QS_EDIT_CLOSED);
|
mUiEventLogger.log(QSEditEvent.QS_EDIT_CLOSED);
|
||||||
isShown = false;
|
isShown = false;
|
||||||
mToolbar.dismissPopupMenus();
|
mToolbar.dismissPopupMenus();
|
||||||
|
mClipper.cancelAnimator();
|
||||||
|
// Make sure we're not opening (because we're closing). Nobody can think we are
|
||||||
|
// customizing after the next two lines.
|
||||||
|
mOpening = false;
|
||||||
setCustomizing(false);
|
setCustomizing(false);
|
||||||
save();
|
save();
|
||||||
if (animate) {
|
if (animate) {
|
||||||
|
|||||||
Reference in New Issue
Block a user