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

Commit 518fe5ed authored by Haofan Wang's avatar Haofan Wang Committed by Android (Google) Code Review
Browse files

Merge "Exclude profiles with tvInputId from the package default" into main

parents 6a639f63 373b5e65
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -222,10 +222,12 @@ public class MediaQualityService extends SystemService {
                                .getMediaProfileColumns(false), selection, selectionArguments);
                    mPackageDefaultPictureProfileHandleMap.clear();
                    for (PictureProfile profile : packageDefaultPictureProfiles) {
                        if (isPackageDefaultPictureProfile(profile)) {
                            mPackageDefaultPictureProfileHandleMap.put(
                                    profile.getPackageName(), profile.getHandle().getId());
                        }
                    }
                }
            } catch (RemoteException e) {
                Slog.e(TAG, "Failed to set ambient backlight detector callback", e);
            }
@@ -2605,7 +2607,8 @@ public class MediaQualityService extends SystemService {
    }

    private boolean isPackageDefaultPictureProfile(PictureProfile pp) {
        if (pp == null || pp.getProfileType() != PictureProfile.TYPE_SYSTEM) {
        if (pp == null || pp.getProfileType() != PictureProfile.TYPE_SYSTEM
                || pp.getInputId() != null) {
            return false;
        }
        String pictureProfileName = pp.getName();
+2 −1
Original line number Diff line number Diff line
shubang@google.com
haofanw@google.com
pkandhalu@google.com
yixiaoluo@google.com
 No newline at end of file