Added weather conditions, fixed the thread for finding locations and added options to disable weather and battery indicators.

This commit is contained in:
ottoptj 2024-08-04 22:41:58 +03:00
commit 71af6d7d49
8 changed files with 121 additions and 460 deletions

View file

@ -138,15 +138,23 @@
android:layout_height="wrap_content"
app:allowDividerAbove="false"
app:title="Weather">
<SwitchPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:defaultValue="false"
android:title="Weather"
app:key="weather_enabled" />
<SwitchPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:defaultValue="false"
android:title="GPS Location"
app:dependency="weather_enabled"
app:key="gps_location" />
<Preference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:dependency="weather_enabled"
app:key="manual_location"
app:selectable="true"
app:title="Set Manual Location" />
@ -154,6 +162,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:defaultValue="celsius"
app:dependency="weather_enabled"
app:entries="@array/temp_units"
app:entryValues="@array/unit_values"
app:key="tempUnits"
@ -172,5 +181,17 @@
app:selectable="true"
app:title="Manage Hidden Apps" />
</PreferenceCategory>
<PreferenceCategory
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:allowDividerAbove="false"
app:title="Battery">
<SwitchPreference
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:defaultValue="false"
android:title="Battery Indicator"
app:key="battery_enabled" />
</PreferenceCategory>
</PreferenceScreen>