diff options
author | Jim Miller <jaggies@google.com> | 2012-10-13 01:16:31 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-10-13 01:16:32 -0700 |
commit | 211a18e2d6548ffc4657b8199661a1764f1008e0 (patch) | |
tree | da4dc8f0d268f52afc915e27d46f36210c32ee8c /policy | |
parent | 28dc64b86b6648d8b38eb202531e20560e1298bc (diff) | |
parent | e955121d6ee64502a938ff3bb3bba8058822d28f (diff) | |
download | frameworks_base-211a18e2d6548ffc4657b8199661a1764f1008e0.zip frameworks_base-211a18e2d6548ffc4657b8199661a1764f1008e0.tar.gz frameworks_base-211a18e2d6548ffc4657b8199661a1764f1008e0.tar.bz2 |
Merge "Partial fix for blank widget page" into jb-mr1-dev
Diffstat (limited to 'policy')
-rw-r--r-- | policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java | 9 |
1 files changed, 2 insertions, 7 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 6d95f0d..fc1cac6 100644 --- a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java +++ b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java @@ -784,17 +784,12 @@ public class KeyguardHostView extends KeyguardViewBase { public void onListenerDetached() { int page = getWidgetPosition(R.id.keyguard_transport_control); if (page != -1) { - if (page == mAppWidgetContainer.getCurrentPage()) { - // Switch back to clock view if music was showing. - mAppWidgetContainer - .setCurrentPage(getWidgetPosition(R.id.keyguard_status_view)); - } mAppWidgetContainer.removeView(mTransportControl); - // XXX keep view attached to hierarchy so we still get show/hide events - // from AudioManager + // XXX keep view attached so we still get show/hide events from AudioManager KeyguardHostView.this.addView(mTransportControl); mTransportControl.setVisibility(View.GONE); mTransportState = TRANSPORT_GONE; + mTransportControl.post(mSwitchPageRunnable); } } |