summaryrefslogtreecommitdiffstats
path: root/policy/src
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2013-03-08 14:30:10 -0800
committerJean-Michel Trivi <jmtrivi@google.com>2013-03-08 14:30:10 -0800
commit9e589b941b16413ecc8286d05f33637d0b5d1dbb (patch)
tree3ccc7e4d637bf9576fc970f188efbbbf8a4c7fe4 /policy/src
parent4a5700556191c835116ec2a6997a4f16f464ac9d (diff)
downloadframeworks_base-9e589b941b16413ecc8286d05f33637d0b5d1dbb.zip
frameworks_base-9e589b941b16413ecc8286d05f33637d0b5d1dbb.tar.gz
frameworks_base-9e589b941b16413ecc8286d05f33637d0b5d1dbb.tar.bz2
Keyguard remote control display artwork size
Update the album art bitmap size to the sent to the IRemoteControlDisplay of Keyguard on layout size changes. Change-Id: I178eba8cbff3d4ffb5232318469c43d95da2f11f
Diffstat (limited to 'policy/src')
-rw-r--r--policy/src/com/android/internal/policy/impl/keyguard/KeyguardTransportControlView.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardTransportControlView.java b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardTransportControlView.java
index ffa88d5..fda47d5 100644
--- a/policy/src/com/android/internal/policy/impl/keyguard/KeyguardTransportControlView.java
+++ b/policy/src/com/android/internal/policy/impl/keyguard/KeyguardTransportControlView.java
@@ -250,6 +250,15 @@ public class KeyguardTransportControlView extends FrameLayout implements OnClick
}
@Override
+ protected void onSizeChanged (int w, int h, int oldw, int oldh) {
+ if (mAttached) {
+ int dim = Math.min(512, Math.max(w, h));
+ if (DEBUG) Log.v(TAG, "TCV uses bitmap size=" + dim);
+ mAudioManager.remoteControlDisplayUsesBitmapSize(mIRCD, dim, dim);
+ }
+ }
+
+ @Override
public void onDetachedFromWindow() {
if (DEBUG) Log.v(TAG, "onDetachFromWindow()");
super.onDetachedFromWindow();