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

Commit 70b92a43 authored by Hyundo Moon's avatar Hyundo Moon
Browse files

AML: Use config_mediaMetadataBitmapMaxSize which is @SystemApi

Bug: 119749798
Test: mmm . (under frameworks/av/packages/MediaComponents)
Change-Id: Ib4f46c9adb61f6d6bdacdba43e706c8a1a735ab1
parent 4183d37f
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -171,10 +171,8 @@ public final class MediaSession {
        if (TextUtils.isEmpty(tag)) {
            throw new IllegalArgumentException("tag cannot be null or empty");
        }
        //TODO(b/119749798): Resolve hidden API usage. com.android.internal.R
        //mMaxBitmapSize = context.getResources().getDimensionPixelSize(
                //com.android.internal.R.dimen.config_mediaMetadataBitmapMaxSize);
        mMaxBitmapSize = 1024;  //TODO: remove this.
        mMaxBitmapSize = context.getResources().getDimensionPixelSize(
                android.R.dimen.config_mediaMetadataBitmapMaxSize);
        mCbStub = new CallbackStub(this);
        MediaSessionManager manager = (MediaSessionManager) context
                .getSystemService(Context.MEDIA_SESSION_SERVICE);