Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e589b94 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

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
parent 4a570055
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -249,6 +249,15 @@ public class KeyguardTransportControlView extends FrameLayout implements OnClick
        mAttached = true;
    }

    @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()");