summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2012-12-06 18:59:19 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-12-06 18:59:19 -0800
commitf882bc336794909b4c145462cfedc8e28a8494ec (patch)
tree4aa6ccc45b3e66d3246963e24ca83b7246877171 /policy
parent1527cc19ed4934d0c60a275f8a3c8617baf791fe (diff)
parenta1bc0979a8cd7389ef4f7f4800fc58cd987ffee2 (diff)
downloadframeworks_base-f882bc336794909b4c145462cfedc8e28a8494ec.zip
frameworks_base-f882bc336794909b4c145462cfedc8e28a8494ec.tar.gz
frameworks_base-f882bc336794909b4c145462cfedc8e28a8494ec.tar.bz2
am a1bc0979: am 0db59a85: Revert "Saving and restoring current page when rotating in lockscreen. (Bug 7568412)"
* commit 'a1bc0979a8cd7389ef4f7f4800fc58cd987ffee2': Revert "Saving and restoring current page when rotating in lockscreen. (Bug 7568412)"
Diffstat (limited to 'policy')
-rw-r--r--policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java23
1 files changed, 1 insertions, 22 deletions
diff --git a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java
index 801b627..73a13fb 100644
--- a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java
+++ b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java
@@ -80,7 +80,6 @@ public class KeyguardHostView extends KeyguardViewBase {
private boolean mEnableFallback; // TODO: This should get the value from KeyguardPatternView
private SecurityMode mCurrentSecuritySelection = SecurityMode.Invalid;
private int mAppWidgetToShow;
- private int mPreviousWidgetPage = -1;
private boolean mCheckAppWidgetConsistencyOnBootCompleted = false;
private boolean mCleanupAppWidgetsOnBootCompleted = false;
@@ -913,7 +912,6 @@ public class KeyguardHostView extends KeyguardViewBase {
public void clearAppWidgetToShow() {
mAppWidgetToShow = AppWidgetManager.INVALID_APPWIDGET_ID;
- mPreviousWidgetPage = -1;
}
@Override
@@ -1301,22 +1299,10 @@ public class KeyguardHostView extends KeyguardViewBase {
showAppropriateWidgetPage();
}
};
- Runnable mOnRestoreUpdatePageRunnable = new Runnable() {
- @Override
- public void run() {
- mSwitchPageRunnable.run();
-
- // We need to update the alpha's of the hints and content after setting the current page
- mViewStateManager.showUsabilityHints();
- };
- };
-
static class SavedState extends BaseSavedState {
int transportState;
int appWidgetToShow = AppWidgetManager.INVALID_APPWIDGET_ID;
- // Note the appWidgetContainerPage is only used if the appWidgetToShow is invalid
- int appWidgetContainerPage = -1;
SavedState(Parcelable superState) {
super(superState);
@@ -1326,7 +1312,6 @@ public class KeyguardHostView extends KeyguardViewBase {
super(in);
this.transportState = in.readInt();
this.appWidgetToShow = in.readInt();
- this.appWidgetContainerPage = in.readInt();
}
@Override
@@ -1334,7 +1319,6 @@ public class KeyguardHostView extends KeyguardViewBase {
super.writeToParcel(out, flags);
out.writeInt(this.transportState);
out.writeInt(this.appWidgetToShow);
- out.writeInt(this.appWidgetContainerPage);
}
public static final Parcelable.Creator<SavedState> CREATOR
@@ -1356,7 +1340,6 @@ public class KeyguardHostView extends KeyguardViewBase {
SavedState ss = new SavedState(superState);
ss.transportState = mViewStateManager.getTransportState();
ss.appWidgetToShow = mAppWidgetToShow;
- ss.appWidgetContainerPage = mAppWidgetContainer.getCurrentPage();
return ss;
}
@@ -1371,8 +1354,7 @@ public class KeyguardHostView extends KeyguardViewBase {
super.onRestoreInstanceState(ss.getSuperState());
mViewStateManager.setTransportState(ss.transportState);
mAppWidgetToShow = ss.appWidgetToShow;
- mPreviousWidgetPage = ss.appWidgetContainerPage;
- post(mOnRestoreUpdatePageRunnable);
+ post(mSwitchPageRunnable);
}
@Override
@@ -1429,9 +1411,6 @@ public class KeyguardHostView extends KeyguardViewBase {
}
mAppWidgetToShow = AppWidgetManager.INVALID_APPWIDGET_ID;
}
- if (mPreviousWidgetPage > -1) {
- return mPreviousWidgetPage;
- }
// if music playing, show transport
if (isMusicPlaying) {
if (DEBUG) Log.d(TAG, "Music playing, show transport");