mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-22 08:13:43 +02:00
Verify that it's possible to get filename from old export
Fixes crash when trying to export to a files that has been removed.
This commit is contained in:
@@ -604,6 +604,7 @@ public class MainActivity extends AppCompatActivity
|
||||
String exportUri = prefs.getString(getExportPreferenceKey(selectedScaleUser), "");
|
||||
uri = Uri.parse(exportUri);
|
||||
getContentResolver().takePersistableUriPermission(uri, Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
|
||||
openScale.getFilenameFromUri(uri);
|
||||
}
|
||||
catch (Exception ex) {
|
||||
uri = null;
|
||||
|
Reference in New Issue
Block a user