|
|
|
@ -8,11 +8,11 @@ import androidx.activity.result.contract.ActivityResultContracts |
|
|
|
|
import androidx.activity.viewModels |
|
|
|
|
import io.legado.app.R |
|
|
|
|
import io.legado.app.base.VMBaseActivity |
|
|
|
|
import io.legado.app.constant.AppConst |
|
|
|
|
import io.legado.app.constant.AppLog |
|
|
|
|
import io.legado.app.constant.Theme |
|
|
|
|
import io.legado.app.databinding.ActivityTranslucenceBinding |
|
|
|
|
import io.legado.app.help.IntentData |
|
|
|
|
import io.legado.app.help.config.AppConfig |
|
|
|
|
import io.legado.app.lib.dialogs.SelectItem |
|
|
|
|
import io.legado.app.lib.dialogs.alert |
|
|
|
|
import io.legado.app.lib.permission.Permissions |
|
|
|
@ -160,7 +160,7 @@ class HandleFileActivity : |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private fun getDirActions(onlySys: Boolean = false): ArrayList<SelectItem<Int>> { |
|
|
|
|
return if (onlySys || AppConfig.isGooglePlay) { |
|
|
|
|
return if (onlySys || AppConst.isPlayChannel) { |
|
|
|
|
arrayListOf(SelectItem(getString(R.string.sys_folder_picker), HandleFileContract.DIR)) |
|
|
|
|
} else { |
|
|
|
|
arrayListOf( |
|
|
|
@ -171,7 +171,7 @@ class HandleFileActivity : |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private fun getFileActions(): ArrayList<SelectItem<Int>> { |
|
|
|
|
return if (AppConfig.isGooglePlay) { |
|
|
|
|
return if (AppConst.isPlayChannel) { |
|
|
|
|
arrayListOf(SelectItem(getString(R.string.sys_file_picker), HandleFileContract.FILE)) |
|
|
|
|
} else { |
|
|
|
|
arrayListOf( |
|
|
|
|