Add additional backup folder failure debug info.
This commit is contained in:
parent
737b1c962a
commit
055f4b09ee
2 changed files with 3 additions and 0 deletions
|
@ -130,6 +130,7 @@ public class BackupDialog {
|
|||
Intent.FLAG_GRANT_READ_URI_PERMISSION);
|
||||
|
||||
try {
|
||||
Log.d(TAG, "Starting choose backup location dialog");
|
||||
fragment.startActivityForResult(intent, requestCode);
|
||||
} catch (ActivityNotFoundException e) {
|
||||
Toast.makeText(fragment.requireContext(), R.string.BackupDialog_no_file_picker_available, Toast.LENGTH_LONG)
|
||||
|
|
|
@ -131,6 +131,8 @@ public class BackupsPreferenceFragment extends Fragment {
|
|||
data,
|
||||
StorageUtil.getDisplayPath(requireContext(), data.getData()),
|
||||
this::setBackupsEnabled);
|
||||
} else {
|
||||
Log.w(TAG, "Unknown activity result. code: " + requestCode + " resultCode: " + resultCode + " data present: " + (data != null));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue