Update libraries
Update libs to new versions, including the nav framework from 1.0.0 -> 2.3.4.
This commit is contained in:
@@ -42,6 +42,7 @@ class MusicLoader(private val context: Context) {
|
||||
linkGenres()
|
||||
}
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
private fun buildSelector() {
|
||||
val blacklistDatabase = BlacklistDatabase.getInstance(context)
|
||||
|
||||
|
||||
@@ -58,7 +58,6 @@ import org.oxycblt.auxio.ui.getSystemServiceSafe
|
||||
*/
|
||||
class PlaybackService : Service(), Player.EventListener, PlaybackStateManager.Callback, SettingsManager.Callback {
|
||||
private val player: SimpleExoPlayer by lazy(::newPlayer)
|
||||
|
||||
private val playbackManager = PlaybackStateManager.getInstance()
|
||||
private val settingsManager = SettingsManager.getInstance()
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@ class BlacklistDialog : BottomSheetDialogFragment() {
|
||||
|
||||
folderChooser(
|
||||
requireContext(),
|
||||
initialDirectory = File(Environment.getExternalStorageDirectory().absolutePath),
|
||||
initialDirectory = File(getRootPath()),
|
||||
emptyTextRes = R.string.label_no_dirs
|
||||
)
|
||||
|
||||
@@ -122,7 +122,7 @@ class BlacklistDialog : BottomSheetDialogFragment() {
|
||||
// Due to how Auxio's navigation flow works, dont allow the main root directory
|
||||
// to be excluded, as that would lead to the user being stuck at the "No Music Found"
|
||||
// screen.
|
||||
if (path == Environment.getExternalStorageDirectory().absolutePath) {
|
||||
if (path == getRootPath()) {
|
||||
getString(R.string.error_brick_dir).createToast(requireContext())
|
||||
|
||||
return
|
||||
@@ -149,4 +149,9 @@ class BlacklistDialog : BottomSheetDialogFragment() {
|
||||
|
||||
exitProcess(0)
|
||||
}
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
private fun getRootPath(): String {
|
||||
return Environment.getExternalStorageDirectory().absolutePath
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user