Verified Commit 8b4435e5 authored by Sarath's avatar Sarath
Browse files

Merge branch 'scope_storage_debug' into staging

parents 5a2cb9a7 f425cd24
......@@ -55,10 +55,20 @@ object ExternalBackupManager {
}
var titleId = R.string.permission_alert_dialog_title_external
var messageId = R.string.permission_dialog_message_external
var messageId = appContext.getString(R.string.permission_dialog_message_external)
if (requireScoped()) {
titleId = R.string.permission_alert_dialog_title_external_scoped
messageId = R.string.permission_dialog_scoped
messageId = appContext.getString(R.string.permission_dialog_scoped)
try {
if(backUpDocumentFile!=null){
messageId += "\n\n --DEBUG--- \nRead : ${backUpDocumentFile!!.canRead()}" +
"\n"+
"Write : ${backUpDocumentFile!!.canWrite()}" +
"\n\n Path: ${backUpDocumentFile!!.uri}\n\n---END DEBUG--- "
}
} catch (e: Exception) {
e.printStackTrace()
}
}
val builder = MaterialAlertDialogBuilder(activity)
builder.setTitle(titleId)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment