summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorJim Miller <jaggies@google.com>2012-10-13 01:16:31 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-10-13 01:16:32 -0700
commit211a18e2d6548ffc4657b8199661a1764f1008e0 (patch)
treeda4dc8f0d268f52afc915e27d46f36210c32ee8c /policy
parent28dc64b86b6648d8b38eb202531e20560e1298bc (diff)
parente955121d6ee64502a938ff3bb3bba8058822d28f (diff)
downloadframeworks_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.java9
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);
}
}