mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-08-25 00:30:37 +02:00
Bangle.js: Fix crash when file save is cancelled
This commit is contained in:
parent
b7ab61f233
commit
8aa3fa3689
@ -315,6 +315,10 @@ public class AppsManagementActivity extends AbstractGBActivity {
|
||||
fileChooserCallback = null;
|
||||
}
|
||||
if (requestCode == CREATE_FILE) { // showSaveFileDialog
|
||||
if (resultCode == Activity.RESULT_CANCELED || intent == null || intent.getData() == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
OutputStream os = null;
|
||||
try {
|
||||
os = getContentResolver().openOutputStream(intent.getData());
|
||||
|
Loading…
Reference in New Issue
Block a user