deps: upgrade

Like a while loop with no escape
Navigation -> 2.5.0-alpha01 [workaround for AGP 7.1]
Preference -> 1.2.0
Fragment -> 1.4.1
This commit is contained in:
OxygenCobalt
2022-02-06 09:08:10 -07:00
parent 0209e526e1
commit bd099aee7b
7 changed files with 8 additions and 9 deletions
@@ -166,7 +166,7 @@ class MainFragment : Fragment() {
if (!binding.playbackLayout.collapse()) {
val navController = binding.exploreNavHost.findNavController()
if (navController.currentDestination?.id == navController.graph.startDestination) {
if (navController.currentDestination?.id == navController.graph.startDestinationId) {
isEnabled = false
requireActivity().onBackPressed()
isEnabled = true
@@ -45,8 +45,6 @@ import org.oxycblt.auxio.util.showToast
/**
* The [DetailFragment] for an album.
* @author OxygenCobalt
* TODO: Disable queue adding when there is no playback here too, however make it so that
* it updates when the song changes.
*/
class AlbumDetailFragment : DetailFragment() {
private val args: AlbumDetailFragmentArgs by navArgs()
@@ -122,7 +122,6 @@ class ExcludedDialog : LifecycleDialog() {
if (path != null) {
excludedModel.addPath(path)
} else {
// TODO: Maybe tolerate this?
requireContext().showToast(R.string.err_bad_dir)
}
}
@@ -75,7 +75,7 @@ class SettingsListFragment : PreferenceFragmentCompat() {
setPreferencesFromResource(R.xml.prefs_main, rootKey)
}
override fun onDisplayPreferenceDialog(preference: Preference?) {
override fun onDisplayPreferenceDialog(preference: Preference) {
if (preference is IntListPreference) {
IntListPrefDialog.from(preference).show(childFragmentManager, IntListPrefDialog.TAG)
} else {
@@ -18,6 +18,7 @@
package org.oxycblt.auxio.settings.pref
import android.annotation.SuppressLint
import android.content.Context
import android.content.res.TypedArray
import android.util.AttributeSet
@@ -95,8 +96,9 @@ class IntListPreference @JvmOverloads constructor(
}
}
@SuppressLint("PrivateResource")
private inner class IntListSummaryProvider : SummaryProvider<IntListPreference> {
override fun provideSummary(preference: IntListPreference?): CharSequence {
override fun provideSummary(preference: IntListPreference): CharSequence {
val index = getValueIndex()
if (index != -1) {