summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorJim Miller <jaggies@google.com>2012-09-12 16:38:56 -0700
committerJim Miller <jaggies@google.com>2012-09-12 16:38:56 -0700
commit6fba0a0c72394e880833b5dcf08241b7ce133239 (patch)
tree3524c59c9ba4322ce19e7e83079d6039c964eafc /policy
parent3ddaace1a27e35eed78bdc4b6dc380d81ba6806d (diff)
downloadframeworks_base-6fba0a0c72394e880833b5dcf08241b7ce133239.zip
frameworks_base-6fba0a0c72394e880833b5dcf08241b7ce133239.tar.gz
frameworks_base-6fba0a0c72394e880833b5dcf08241b7ce133239.tar.bz2
Music in keyguard improvements
- fix overscroll issue with workaround described in bug 7137941 - ignore noisy signals from music player that sometimes hide it Change-Id: I6a25674ce7157bd70409f56881ec62644f5fce9b
Diffstat (limited to 'policy')
-rw-r--r--policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java5
1 files changed, 4 insertions, 1 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 fca7a35..1405260 100644
--- a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java
+++ b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardHostView.java
@@ -142,10 +142,11 @@ public class KeyguardHostView extends KeyguardViewBase {
(KeyguardTransportControlView) findViewById(R.id.keyguard_transport_control);
if (mTransportControl != null) {
mTransportControl.setKeyguardCallback(new TransportCallback() {
+ boolean mSticky = false;
@Override
public void hide() {
int page = getWidgetPosition(R.id.keyguard_transport_control);
- if (page != -1) {
+ if (page != -1 && !mSticky) {
if (page == mAppWidgetContainer.getCurrentPage()) {
// Switch back to clock view if music was showing.
mAppWidgetContainer
@@ -166,6 +167,8 @@ public class KeyguardHostView extends KeyguardViewBase {
mAppWidgetContainer.addView(mTransportControl,
getWidgetPosition(R.id.keyguard_status_view) + 1);
mTransportControl.setVisibility(View.VISIBLE);
+ // Once shown, leave it showing
+ mSticky = true;
}
}
});