File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
datastore/src/main/kotlin/com/xayah/core/datastore
data/src/main/kotlin/com/xayah/core/data/repository Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,7 @@ import com.xayah.core.util.command.PreparationUtil
1818import dagger.hilt.android.qualifiers.ApplicationContext
1919import kotlinx.coroutines.flow.distinctUntilChanged
2020import kotlinx.coroutines.flow.first
21- import java.nio.file.Paths
2221import javax.inject.Inject
23- import kotlin.io.path.name
24- import kotlin.io.path.pathString
2522
2623class DirectoryRepository @Inject constructor(
2724 @ApplicationContext private val context : Context ,
@@ -81,7 +78,7 @@ class DirectoryRepository @Inject constructor(
8178 directoryDao.updateActive(active = false )
8279
8380 // Internal storage
84- val internalList = rootService.listFilePaths(PathUtil .getDataMediaDir() , listFiles = false )
81+ val internalList = rootService.listFilePaths(ConstantUtil . STORAGE_EMULATED_PATH , listFiles = false )
8582 .filter { it.substring(it.lastIndexOf(" /" ) + 1 ).toIntOrNull() != null } // Just select 0 10 999 etc.
8683 val internalDirs = mutableListOf<DirectoryUpsertEntity >()
8784 for (storageItem in internalList) {
Original file line number Diff line number Diff line change 11package com.xayah.core.datastore
22
33object ConstantUtil {
4- private const val DATA_MEDIA_PATH = " /data/media "
4+ const val STORAGE_EMULATED_PATH = " /storage/emulated "
55 private const val DEFAULT_USER_ID = 0
6- const val DEFAULT_PATH_PARENT = " ${DATA_MEDIA_PATH } /${DEFAULT_USER_ID } "
6+ const val DEFAULT_PATH_PARENT = " ${STORAGE_EMULATED_PATH } /${DEFAULT_USER_ID } "
77 const val DEFAULT_PATH_CHILD = " DataBackup"
88 const val DEFAULT_PATH = " ${DEFAULT_PATH_PARENT } /${DEFAULT_PATH_CHILD } "
99 const val DEFAULT_IDLE_TIMEOUT = - 1
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ zip4j = "2.11.5"
3232kotlinx-coroutines-core-jvm = " 1.8.0"
3333room = " 2.6.1"
3434coil-compose = " 2.4.0"
35- dotlottie-android = " 0.6.1 "
35+ dotlottie-android = " 0.9.2 "
3636palette = " 1.0.0"
3737google-services = " 4.3.15" # Pinned: https://github.com/firebase/firebase-android-sdk/issues/4693#issuecomment-1765778239
3838firebase-crashlytics-gradle = " 2.9.9" # Pinned for module usage, workaround: https://github.com/xamarin/GooglePlayServicesComponents/issues/642#issuecomment-1221520982
You can’t perform that action at this time.
0 commit comments