Added lyrics shadow for better visibility of text

This commit is contained in:
Prathamesh More 2022-01-08 00:40:51 +05:30
parent 80f3926210
commit 5772fcd812
11 changed files with 34 additions and 22 deletions

View file

@ -28,7 +28,7 @@ object BackupHelper : KoinComponent {
suspend fun createBackup(context: Context, name: String) {
val backupFile =
File(getBackupRoot(context), name + APPEND_EXTENSION)
File(getBackupRoot(), name + APPEND_EXTENSION)
if (backupFile.parentFile?.exists() != true) {
backupFile.parentFile?.mkdirs()
}
@ -257,9 +257,9 @@ object BackupHelper : KoinComponent {
}
}
fun getBackupRoot(context: Context): File {
fun getBackupRoot(): File {
return File(
context.getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS),
Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS),
"RetroMusic/Backups"
)
}