summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2013-03-12 16:49:13 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2013-03-12 16:49:13 +0000
commit8fac5869d460cad3432c2805edb79c5be9114e82 (patch)
tree747390ccec080b420722b2487af6ef5d6ab9e9f8 /packages
parentc1059ca337bce554056467dc79de6aecf4569f9e (diff)
parent0e23dd635aae47463fa457c43938898babd7e42c (diff)
downloadframeworks_base-8fac5869d460cad3432c2805edb79c5be9114e82.zip
frameworks_base-8fac5869d460cad3432c2805edb79c5be9114e82.tar.gz
frameworks_base-8fac5869d460cad3432c2805edb79c5be9114e82.tar.bz2
am 0e23dd63: am 998b692d: Merge "Keyguard remote control display artwork size" into jb-mr2-dev
* commit '0e23dd635aae47463fa457c43938898babd7e42c': Keyguard remote control display artwork size
Diffstat (limited to 'packages')
-rw-r--r--packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java b/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
index 07be2cc..315dca6 100644
--- a/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
+++ b/packages/Keyguard/src/com/android/keyguard/KeyguardTransportControlView.java
@@ -248,6 +248,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();