diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2013-03-12 16:49:13 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2013-03-12 16:49:13 +0000 |
commit | 8fac5869d460cad3432c2805edb79c5be9114e82 (patch) | |
tree | 747390ccec080b420722b2487af6ef5d6ab9e9f8 /packages | |
parent | c1059ca337bce554056467dc79de6aecf4569f9e (diff) | |
parent | 0e23dd635aae47463fa457c43938898babd7e42c (diff) | |
download | frameworks_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.java | 9 |
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(); |