Add additional backup folder failure debug info.

This commit is contained in:
Cody Henthorne 2023-04-10 22:02:04 -04:00 committed by Greyson Parrelli
parent 737b1c962a
commit 055f4b09ee
2 changed files with 3 additions and 0 deletions

View file

@ -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)

View file

@ -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));
}
}