Revert "Cherish: Ambient Edge Pulse layout [2/2]"

This reverts commit b47fa93b0e.

Signed-off-by: Hưng Phan <phandinhhungvp2001@gmail.com>
This commit is contained in:
Hưng Phan
2021-05-04 21:41:14 +07:00
parent 83ac501db9
commit 43d7215f4d
4 changed files with 0 additions and 26 deletions

View File

@@ -25,7 +25,6 @@ import com.cherish.settings.preferences.SystemSettingMasterSwitchPreference;
import com.cherish.settings.preferences.SystemSettingSeekBarPreference;
import com.cherish.settings.preferences.CustomSeekBarPreference;
import com.cherish.settings.preferences.SystemSettingListPreference;
import com.cherish.settings.preferences.SystemSettingListPreference;
import com.cherish.settings.preferences.SystemSettingSwitchPreference;
import net.margaritov.preference.colorpicker.ColorPickerPreference;
import com.android.internal.util.cherish.CherishUtils;
@@ -44,7 +43,6 @@ public class NotificationSettings extends SettingsPreferenceFragment implements
private CustomSeekBarPreference mEdgeLightDurationPreference;
private CustomSeekBarPreference mEdgeLightRepeatCountPreference;
private ListPreference mColorMode;
private SystemSettingListPreference mAmbientLightLayout;
private SystemSettingSwitchPreference mAmbientPref;
@Override
public void onCreate(Bundle icicle) {
@@ -88,7 +86,6 @@ public class NotificationSettings extends SettingsPreferenceFragment implements
mEdgeLightDurationPreference.setValue(duration);
mColorMode = (ListPreference) findPreference(PULSE_COLOR_MODE_PREF);
mAmbientLightLayout = (SystemSettingListPreference) findPreference("pulse_ambient_light_layout");
int value;
boolean colorModeAutomatic = Settings.System.getInt(getContentResolver(),
Settings.System.NOTIFICATION_PULSE_COLOR_AUTOMATIC, 0) != 0;
@@ -111,7 +108,6 @@ public class NotificationSettings extends SettingsPreferenceFragment implements
Settings.System.NOTIFICATION_PULSE_COLOR, 0xFF3980FF);
mEdgeLightColorPreference.setNewPreviewColor(edgeLightColor);
mEdgeLightColorPreference.setAlphaSliderEnabled(false);
mAmbientLightLayout.setEnabled(true);
String edgeLightColorHex = String.format("#%08x", (0xFF3980FF & edgeLightColor));
if (edgeLightColorHex.equals("#ff1a73e8")) {
mEdgeLightColorPreference.setSummary(R.string.color_default);