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

Commit 1077c935 authored by Hongguang Chen's avatar Hongguang Chen Committed by Android (Google) Code Review
Browse files

Merge "Add mapping in requestPictureParameter" into main

parents f85a9d4b c11bacbc
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -2358,7 +2358,14 @@ public class MediaQualityService extends SystemService {

        @Override
        public void requestPictureParameters(long pictureProfileId) throws RemoteException {
            PictureProfile profile = mMqDatabaseUtils.getPictureProfile(pictureProfileId, true);
            if (DEBUG) {
                Log.d(TAG, "requestPictureParameters for picture profile id "
                        + pictureProfileId);
            }
            PictureProfile profile = mOriginalHandleToCurrentPictureProfile.get(pictureProfileId);
            if (profile == null) {
                profile = mMqDatabaseUtils.getPictureProfile(pictureProfileId, true);
            }
            if (profile != null) {
                mHalNotifier.notifyHalOnPictureProfileChange(pictureProfileId,
                        profile.getParameters());