Update dependencies
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package it.vfsfitvnm.vimusic.ui.screens
|
||||
|
||||
import android.net.Uri
|
||||
import android.util.Log
|
||||
import androidx.compose.animation.*
|
||||
import androidx.compose.foundation.ExperimentalFoundationApi
|
||||
import androidx.compose.foundation.Image
|
||||
@@ -85,6 +86,8 @@ fun HomeScreen() {
|
||||
}
|
||||
}.collectAsState(initial = emptyList(), context = Dispatchers.IO)
|
||||
|
||||
Log.d("HomeScreen", "songCollection: ${songCollection.size}")
|
||||
|
||||
RouteHandler(
|
||||
listenToGlobalEmitter = true,
|
||||
transitionSpec = {
|
||||
|
||||
@@ -77,7 +77,7 @@ fun BackupAndRestoreScreen() {
|
||||
Database.checkpoint()
|
||||
context.applicationContext.contentResolver.openOutputStream(uri)
|
||||
?.use { outputStream ->
|
||||
FileInputStream(Database.internal.openHelper.writableDatabase.path).use { inputStream ->
|
||||
FileInputStream(Database.internal.getOpenHelper().writableDatabase.path).use { inputStream ->
|
||||
inputStream.copyTo(outputStream)
|
||||
}
|
||||
}
|
||||
@@ -91,7 +91,7 @@ fun BackupAndRestoreScreen() {
|
||||
coroutineScope.launch(Dispatchers.IO) {
|
||||
Database.internal.close()
|
||||
|
||||
FileOutputStream(Database.internal.openHelper.writableDatabase.path).use { outputStream ->
|
||||
FileOutputStream(Database.internal.getOpenHelper().writableDatabase.path).use { outputStream ->
|
||||
context.applicationContext.contentResolver.openInputStream(uri)
|
||||
?.use { inputStream ->
|
||||
inputStream.copyTo(outputStream)
|
||||
|
||||
Reference in New Issue
Block a user