Skip to content

Commit

Permalink
Fix some pref visibility and summary
Browse files Browse the repository at this point in the history
  • Loading branch information
DHD2280 committed May 6, 2024
1 parent f947d62 commit f77d626
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package it.dhd.oxygencustomizer.utils;

import static it.dhd.oxygencustomizer.OxygenCustomizer.getAppContext;
import static it.dhd.oxygencustomizer.utils.Constants.LockscreenWeather.LOCKSCREEN_WEATHER_BACKGROUND;
import static it.dhd.oxygencustomizer.utils.Constants.LockscreenWeather.LOCKSCREEN_WEATHER_CUSTOM_COLOR;
import static it.dhd.oxygencustomizer.utils.Constants.LockscreenWeather.LOCKSCREEN_WEATHER_CUSTOM_COLOR_SWITCH;
import static it.dhd.oxygencustomizer.utils.Constants.LockscreenWeather.LOCKSCREEN_WEATHER_CUSTOM_LOCATION;
Expand Down Expand Up @@ -401,7 +402,8 @@ public static boolean isVisible(String key) {
LOCKSCREEN_WEATHER_SHOW_LOCATION,
LOCKSCREEN_WEATHER_SHOW_CONDITION,
LOCKSCREEN_WEATHER_CUSTOM_COLOR_SWITCH,
LOCKSCREEN_WEATHER_CUSTOM_MARGINS -> {
LOCKSCREEN_WEATHER_CUSTOM_MARGINS,
LOCKSCREEN_WEATHER_BACKGROUND -> {
return instance.mPreferences.getBoolean(LOCKSCREEN_WEATHER_SWITCH, false);
}
case "weather_custom_location" -> {
Expand Down Expand Up @@ -632,6 +634,8 @@ public static String getSummary(Context fragmentCompat, @NonNull String key) {
case "pulse_line_wave_opacity" ->
String.valueOf(instance.mPreferences.getSliderInt("pulse_line_wave_opacity", 200));

// Buttons
case "volbtn_torch_enable_timeout" -> instance.mPreferences.getSliderInt("volbtn_torch_enable_timeout", 5) + " s";

default -> null;
};
Expand Down

0 comments on commit f77d626

Please sign in to comment.