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

Unverified Commit 28c40f76 authored by Alexander Martinz's avatar Alexander Martinz Committed by Michael Bestas
Browse files

Fix development color mode preference



This is a sed gone wrong.
It was unintentionally changed in 15ca95a3
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's avatarAlexander Martinz <amartinz@shiftphones.com>
parent 64de97c7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;