Skip to content
Snippets Groups Projects
Commit f989e4ed authored by Dhina17's avatar Dhina17
Browse files

AmbientEdgeLight: Migrate to CompoundButton.OnCheckedChangeListener

OnMainSwitchChangeListener is removed in QPR2.

Change-Id: Ie97b369f30ee77d26f6130976c61ddde1297397b
parent 956b53bc
No related branches found
No related tags found
No related merge requests found
/*
* Copyright (C) 2023 The LibreMobileOS Foundation
* Copyright (C) 2023-2024 The LibreMobileOS Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
......@@ -21,7 +21,8 @@ import android.graphics.Color;
import android.os.Bundle;
import android.os.UserHandle;
import android.provider.Settings;
import android.widget.Switch;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
import androidx.preference.Preference;
import androidx.preference.PreferenceScreen;
......@@ -34,7 +35,6 @@ import com.android.settings.SettingsPreferenceFragment;
import com.android.settingslib.widget.LayoutPreference;
import com.android.settingslib.widget.MainSwitchPreference;
import com.android.settingslib.widget.OnMainSwitchChangeListener;
import com.android.settingslib.widget.SelectorWithWidgetPreference;
import com.libremobileos.providers.LMOSettings;
......@@ -43,7 +43,7 @@ import java.util.Arrays;
import java.util.List;
public class AmbientEdgeLightSettings extends SettingsPreferenceFragment implements
SelectorWithWidgetPreference.OnClickListener, OnMainSwitchChangeListener,
SelectorWithWidgetPreference.OnClickListener, OnCheckedChangeListener,
ColorSelectorAdapter.ColorSelectListener {
private static final String PULSE_AMBIENT_LIGHT = "pulse_ambient_light";
......@@ -116,7 +116,7 @@ public class AmbientEdgeLightSettings extends SettingsPreferenceFragment impleme
}
@Override
public void onSwitchChanged(Switch switchView, boolean isChecked) {
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
enableColorSelector(isChecked);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment