Fix development color mode preference

This is a sed gone wrong.
It was unintentionally changed in 15ca95a31b
which broke functionality.

Change it to a SwitchPreferenceCompat instead of changing it back
to a SwitchPreference, as all the other preferences in the
development section are one as well.

Change-Id: Id276d3b67c103b83ba01a69ff2991246c69efc69
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
This commit is contained in:
Alexander Martinz
2025-04-22 13:19:44 +02:00
committed by Michael Bestas
parent 64de97c728
commit 28c40f76d1

View File

@@ -24,14 +24,14 @@ import android.os.Looper;
import android.util.AttributeSet;
import android.view.Display;
import androidx.preference.TwoStatePreference;
import androidx.preference.SwitchPreferenceCompat;
import com.android.settingslib.R;
import java.util.ArrayList;
import java.util.List;
public class ColorModePreference extends TwoStatePreference implements DisplayListener {
public class ColorModePreference extends SwitchPreferenceCompat implements DisplayListener {
private DisplayManager mDisplayManager;
private Display mDisplay;