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

Unverified Commit 737407a5 authored by Rashed Abdel-Tawab's avatar Rashed Abdel-Tawab
Browse files

livedisplay: Don't show display mode and color tempertature on HWC2

Change-Id: Ib60e11bdb79a233c961d00c0968922264c042011
parent e56f91d2
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@ import android.text.TextUtils;
import android.util.ArraySet;
import android.util.Log;

import com.android.internal.app.ColorDisplayController;
import com.android.internal.util.ArrayUtils;

import org.lineageos.lineageparts.R;
@@ -170,6 +171,10 @@ public class LiveDisplaySettings extends SettingsPreferenceFragment implements S
        mLiveDisplay.setOnPreferenceChangeListener(this);

        mDisplayTemperature = (DisplayTemperature) findPreference(KEY_LIVE_DISPLAY_TEMPERATURE);
        if (ColorDisplayController.isAvailable(getContext())) {
            liveDisplayPrefs.removePreference(mLiveDisplay);
            liveDisplayPrefs.removePreference(mDisplayTemperature);
        }

        mColorProfile = (ListPreference) findPreference(KEY_LIVE_DISPLAY_COLOR_PROFILE);
        if (liveDisplayPrefs != null && mColorProfile != null