mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-30 06:21:02 +00:00
feat: changing the downloads dir
This commit is contained in:
@@ -62,8 +62,11 @@ class StoragePermissions {
|
||||
}
|
||||
|
||||
fun AppCompatActivity.accessAlertDialog(launcher: LauncherWrapper,
|
||||
complete: (Boolean) -> Unit) {
|
||||
if (PrefManager.getVal<String>(PrefName.DownloadsDir).isNotEmpty()) {
|
||||
force: Boolean = false,
|
||||
complete: (Boolean) -> Unit
|
||||
) {
|
||||
if ((PrefManager.getVal<String>(PrefName.DownloadsDir).isNotEmpty() || hasDirAccess(this)) && !force) {
|
||||
complete(true)
|
||||
return
|
||||
}
|
||||
val builder = AlertDialog.Builder(this, R.style.MyPopup)
|
||||
|
||||
Reference in New Issue
Block a user