Fix format

This commit is contained in:
birdbird 2022-10-01 11:42:55 +00:00
parent 4ca01d3afc
commit 705771b4ee
4 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,3 @@
enableFeaturePreview("VERSION_CATALOGS")
include ':core:domain'
include ':core:subsonic-api'
include ':ultrasonic'

View File

@ -159,7 +159,6 @@ class CachedDataSource(
bytesTransferred(read)
}
return
} catch (e: HttpDataSourceException) {
throw e
} catch (ignored: IOException) {

View File

@ -20,7 +20,8 @@ class TimeSpanPreferenceDialogFragmentCompat : PreferenceDialogFragmentCompat(),
override fun onCreateDialogView(context: Context): View? {
picker = TimeSpanPicker(context)
picker!!.setTimeSpanDisableText(requireContext().resources.getString(R.string.no_expiration))
val disabledText = requireContext().resources.getString(R.string.no_expiration)
picker!!.setTimeSpanDisableText(disabledText)
val persisted = Settings.defaultShareExpiration
if ("" != persisted) {
val split = Settings.COLON_PATTERN.split(persisted)