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

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

Merge "Check system support of wide-color"

parents a48e75ae bae1b24b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -545,7 +545,7 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
        mColorModePreference = (ColorModePreference) findPreference(KEY_COLOR_MODE);
        mColorModePreference.updateCurrentAndSupported();
        if (mColorModePreference.getColorModeCount() < 2 ||
                getContext().getDisplay().isWideColorGamut()) {
                getContext().getResources().getConfiguration().isScreenWideColorGamut()) {
            removePreference(KEY_COLOR_MODE);
            mColorModePreference = null;
        }
+1 −1
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ public class PictureColorModePreferenceController extends

    @VisibleForTesting
    boolean isWideColorGamut() {
        return mContext.getDisplay().isWideColorGamut();
        return mContext.getResources().getConfiguration().isScreenWideColorGamut();
    }

    @VisibleForTesting