diff options
author | Adam Cohen <adamcohen@google.com> | 2012-07-24 22:34:36 -0700 |
---|---|---|
committer | Adam Cohen <adamcohen@google.com> | 2012-07-24 22:34:36 -0700 |
commit | 1462de39f01cec0ba785386532719cb0207dd827 (patch) | |
tree | 3204f51f6f91b97889fb180202d88f83a561c5ca /src/com/android/launcher2/CellLayout.java | |
parent | a13a2f2a7bd0550d1ad973f760ff25e1a4137c43 (diff) | |
download | android_packages_apps_Trebuchet-1462de39f01cec0ba785386532719cb0207dd827.tar.gz android_packages_apps_Trebuchet-1462de39f01cec0ba785386532719cb0207dd827.tar.bz2 android_packages_apps_Trebuchet-1462de39f01cec0ba785386532719cb0207dd827.zip |
Ensuring that restoreInstanceState is being called promptly for synchronously bound page
Change-Id: I0e71c29f553ad360ec42a6a0b2529d16cbddd437
Diffstat (limited to 'src/com/android/launcher2/CellLayout.java')
-rw-r--r-- | src/com/android/launcher2/CellLayout.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/com/android/launcher2/CellLayout.java b/src/com/android/launcher2/CellLayout.java index c028ff1dc..97d9bc1b5 100644 --- a/src/com/android/launcher2/CellLayout.java +++ b/src/com/android/launcher2/CellLayout.java @@ -17,9 +17,9 @@ package com.android.launcher2; import android.animation.Animator; +import android.animation.AnimatorListenerAdapter; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; -import android.animation.AnimatorListenerAdapter; import android.animation.TimeInterpolator; import android.animation.ValueAnimator; import android.animation.ValueAnimator.AnimatorUpdateListener; @@ -37,8 +37,10 @@ import android.graphics.Rect; import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.Drawable; import android.graphics.drawable.NinePatchDrawable; +import android.os.Parcelable; import android.util.AttributeSet; import android.util.Log; +import android.util.SparseArray; import android.view.MotionEvent; import android.view.View; import android.view.ViewDebug; @@ -532,6 +534,10 @@ public class CellLayout extends ViewGroup { return false; } + public void restoreInstanceState(SparseArray<Parcelable> states) { + dispatchRestoreInstanceState(states); + } + @Override public void cancelLongPress() { super.cancelLongPress(); |