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

Commit 980af763 authored by Hyundo Moon's avatar Hyundo Moon Committed by Android (Google) Code Review
Browse files

Merge "AML: Use config_mediaMetadataBitmapMaxSize which is @SystemApi"

parents 9f4d6518 70b92a43
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);