Skip to content

Commit

Permalink
Revert "Use Material 3 styled preference rather than system settings …
Browse files Browse the repository at this point in the history
…styled"

This commit reverts ccbd97a
  • Loading branch information
RikkaW committed Jun 26, 2022
1 parent 575739c commit 65458e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ dependencies {
implementation "dev.rikka.rikkax.core:core:1.4.0"
implementation 'dev.rikka.rikkax.html:html-ktx:1.1.2'
implementation 'dev.rikka.rikkax.material:material:2.4.0'
implementation 'dev.rikka.rikkax.material:material-preference:2.0.0'
implementation 'dev.rikka.rikkax.material:material-preference:1.1.0'
implementation 'dev.rikka.rikkax.recyclerview:recyclerview-ktx:1.3.1'
implementation 'dev.rikka.rikkax.widget:borderview:1.1.0'
implementation 'dev.rikka.rikkax.widget:mainswitchbar:1.1.0'
Expand Down
12 changes: 6 additions & 6 deletions app/src/main/res/xml/preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
app:iconSpaceReserved="true"
app:useSimpleSummaryProvider="true" />

<rikka.material.preference.MaterialSwitchPreference
<SwitchPreference
android:defaultValue="true"
android:key="pref_key_notification"
android:title="@string/settings_show_notification"
app:allowDividerAbove="true"
app:icon="@drawable/ic_outline_notifications_24"
app:iconSpaceReserved="true" />

<rikka.material.preference.MaterialSwitchPreference
<SwitchPreference
android:defaultValue="false"
android:dependency="pref_key_notification"
android:key="pref_key_notification_low_priority"
Expand All @@ -53,27 +53,27 @@
</intent>
</Preference>

<rikka.material.preference.MaterialSwitchPreference
<SwitchPreference
android:defaultValue="false"
android:key="pref_key_wake_lock"
android:title="@string/settings_keep_screen_on"
app:icon="@drawable/ic_outline_wb_sunny_24"
app:iconSpaceReserved="true" />

<rikka.material.preference.MaterialSwitchPreference
<SwitchPreference
android:defaultValue="false"
android:key="pref_key_screen_lock_switch"
android:summary="@string/settings_allow_toggle_lock_screen_summary"
android:title="@string/settings_allow_toggle_lock_screen"
app:iconSpaceReserved="true" />

<rikka.material.preference.MaterialSwitchPreference
<SwitchPreference
android:defaultValue="false"
android:key="start_on_boot"
android:title="@string/settings_start_on_boot"
app:iconSpaceReserved="true" />

<rikka.material.preference.MaterialSwitchPreference
<SwitchPreference
android:defaultValue="false"
android:key="pref_key_hide_launcher_icon"
android:summary="@string/settings_hide_icon_summary"
Expand Down

0 comments on commit 65458e8

Please sign in to comment.