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

Commit e8fcafe4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[MQ] Handle status change for TV input" into main

parents 4a4c22dc a71900db
Loading
Loading
Loading
Loading
+10 −3
Original line number Diff line number Diff line
@@ -641,10 +641,17 @@ public class MediaQualityService extends SystemService {
                    }
                    long handle = -1;
                    cursor.moveToFirst();
                    int colIndex = cursor.getColumnIndex(BaseParameters.PARAMETER_ID);
                    if (colIndex != -1) {
                        handle = cursor.getLong(colIndex);
                    }
                    PictureProfile p = MediaQualityUtils.convertCursorToPictureProfileWithTempId(
                            cursor, mPictureProfileTempIdMap);
                    handle = p.getHandle().getId();
                    PictureProfile current = mHandleToPictureProfile.get(handle);
                    if (current != null) {
                        long currentHandle = current.getHandle().getId();
                        mHalNotifier.notifyHalOnPictureProfileChange(
                                currentHandle, current.getParameters());
                        return currentHandle;
                    }
                    mHalNotifier.notifyHalOnPictureProfileChange(handle, p.getParameters());
                    return handle;
                }
            }