Skip to content

Commit

Permalink
Update preference library
Browse files Browse the repository at this point in the history
  • Loading branch information
Slion committed Apr 7, 2024
1 parent e64b49d commit 8993547
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ dependencies {
//implementation group: 'com.google.android.material', name: 'material', version: '1.6.0-alpha01'

//
implementation "net.slions.android:preference:0.0.4"
implementation "net.slions.android:preference:0.0.5"

// Play Store billing
playstoreImplementation 'com.android.billingclient:billing:6.2.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import fulguris.app
import fulguris.extensions.copyToClipboard
import fulguris.extensions.snackbar
import fulguris.extensions.toast
import slions.BasicPreference
import slions.pref.BasicPreference
import fulguris.utils.WebUtils
import okhttp3.HttpUrl.Companion.toHttpUrl
import timber.log.Timber
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import com.google.android.material.dialog.MaterialAlertDialogBuilder
import dagger.hilt.android.AndroidEntryPoint
import fulguris.app
import fulguris.extensions.configId
import slions.BasicPreference
import slions.pref.BasicPreference
import fulguris.settings.Config
import java.io.File
import javax.inject.Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import android.net.Uri
import android.os.Bundle
import androidx.preference.Preference
import dagger.hilt.android.AndroidEntryPoint
import slions.BasicPreference
import slions.pref.BasicPreference


@AndroidEntryPoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import fulguris.extensions.resizeAndShow
import fulguris.extensions.reverseDomainName
import fulguris.favicon.FaviconModel
import fulguris.settings.preferences.DomainPreferences
import slions.BasicPreference
import slions.pref.BasicPreference
import fulguris.utils.Utils
import android.annotation.SuppressLint
import android.content.SharedPreferences
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import androidx.core.graphics.scale
import androidx.preference.Preference
import androidx.preference.PreferenceCategory
import dagger.hilt.android.AndroidEntryPoint
import slions.BasicPreference
import slions.pref.BasicPreference
import io.reactivex.Scheduler
import io.reactivex.rxkotlin.subscribeBy
import javax.inject.Inject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import androidx.fragment.app.commit
import androidx.preference.Preference
import androidx.preference.PreferenceFragmentCompat
import androidx.preference.PreferenceHeaderFragmentCompat
import slions.BasicPreference
import slions.pref.BasicPreference
import timber.log.Timber


Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/xml/preference_configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
a:iconSpaceReserved="false"
a:singleLineTitle="false" />

<slions.EnumListPreference
<slions.pref.EnumListPreference
a:key="@string/pref_key_cutout_mode"
a:title="@string/pref_title_cutout_mode"
a:useSimpleSummaryProvider="true"
Expand All @@ -112,7 +112,7 @@
a:enumClassName="fulguris.enums.CutoutMode"
/>

<slions.SliderPreference
<slions.pref.SliderPreference
a:key="@string/pref_key_desktop_width"
a:title="@string/pref_title_desktop_width"
a:summary="@string/pref_summary_desktop_width"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/xml/preference_debug.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
a:singleLineTitle="false"
/>

<slions.EnumListPreference
<slions.pref.EnumListPreference
a:key="@string/pref_key_log_level"
a:dependency="@string/pref_key_logs"
a:title="@string/pref_title_log_level"
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/xml/preference_display.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
a:singleLineTitle="false"
/>

<slions.EnumListPreference
<slions.pref.EnumListPreference
a:key="@string/pref_key_toolbar_label"
a:title="@string/settings_title_toolbar_label"
a:useSimpleSummaryProvider="true"
Expand All @@ -87,7 +87,7 @@
a:enumClassName="fulguris.enums.HeaderInfo"
/>

<slions.EnumListPreference
<slions.pref.EnumListPreference
a:key="@string/pref_key_task_label"
a:title="@string/settings_title_task_label"
a:useSimpleSummaryProvider="true"
Expand Down Expand Up @@ -193,7 +193,7 @@

<PreferenceCategory android:title="@string/pref_category_webpage">

<slions.EnumListPreference
<slions.pref.EnumListPreference
a:key="@string/pref_key_layer_type"
a:title="@string/settings_title_layer_type"
a:useSimpleSummaryProvider="true"
Expand Down
8 changes: 4 additions & 4 deletions app/src/main/res/xml/preference_domain.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

</Preference>

<slions.BasicPreference
<slions.pref.BasicPreference
a:fragment="fulguris.settings.fragment.DomainSettingsFragment"
a:key="@string/pref_key_parent"
a:title="@string/settings_title_parent"
Expand Down Expand Up @@ -180,7 +180,7 @@
a:iconSpaceReserved="true"
a:singleLineTitle="false" />

<slions.EnumListPreference
<slions.pref.EnumListPreference
a:key="@string/pref_key_launch_app"
a:title="@string/settings_title_launch_app"
a:useSimpleSummaryProvider="true"
Expand All @@ -207,7 +207,7 @@
a:iconSpaceReserved="true"
a:singleLineTitle="false" />

<slions.EnumListPreference
<slions.pref.EnumListPreference
a:key="@string/pref_key_ssl_error"
a:title="@string/settings_title_ssl_error"
a:useSimpleSummaryProvider="true"
Expand All @@ -234,7 +234,7 @@
/>


<slions.BasicPreference
<slions.pref.BasicPreference
a:key="@string/pref_key_delete"
a:title="@string/settings_title_delete_domain_settings"
a:summary="@string/settings_summary_delete_domain_settings"
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/res/xml/preference_domain_default.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
a:iconSpaceReserved="false"
a:singleLineTitle="false" />

<slions.EnumListPreference
<slions.pref.EnumListPreference
a:key="@string/pref_key_launch_app"
a:title="@string/settings_title_launch_app"
a:useSimpleSummaryProvider="true"
Expand All @@ -82,7 +82,7 @@
a:enumClassName="fulguris.settings.NoYesAsk"
/>

<slions.EnumListPreference
<slions.pref.EnumListPreference
a:key="@string/pref_key_ssl_error"
a:title="@string/settings_title_ssl_error"
a:useSimpleSummaryProvider="true"
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/res/xml/preference_scrollbars.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
app:layout="@layout/preference_category_material"
tools:ignore="PrivateResource" />

<slions.SliderPreference
<slions.pref.SliderPreference
app:key="@string/pref_key_scrollbar_size"
app:title="@string/pref_title_scrollbar_size"
app:summary="@string/pref_summary_scrollbar_size"
Expand All @@ -39,7 +39,7 @@
app:singleLineTitle="false"
/>

<slions.SliderPreference
<slions.pref.SliderPreference
app:key="@string/pref_key_scrollbar_delay_before_fade"
app:dependency="@string/pref_key_scrollbar_fading"
app:title="@string/pref_title_scrollbar_delay_before_fade"
Expand All @@ -58,7 +58,7 @@
app:singleLineTitle="false"
/>

<slions.SliderPreference
<slions.pref.SliderPreference
app:key="@string/pref_key_scrollbar_fade_duration"
app:dependency="@string/pref_key_scrollbar_fading"
app:title="@string/pref_title_scrollbar_fade_duration"
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/xml/preference_tab.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
a:singleLineTitle="false"
/>

<slions.SliderPreference
<slions.pref.SliderPreference
a:key="@string/pref_key_on_tab_flip_animation_duration"
a:dependency="@string/pref_key_on_tab_back_show_animation"
a:title="@string/settings_title_animation_duration"
Expand Down

0 comments on commit 8993547

Please sign in to comment.