mirror of
https://github.com/oliexdev/openScale.git
synced 2025-08-23 00:33:09 +02:00
Merge pull request #210 from erijo/export-fix
Verify that it's possible to get filename from old export
This commit is contained in:
@@ -604,6 +604,7 @@ public class MainActivity extends AppCompatActivity
|
|||||||
String exportUri = prefs.getString(getExportPreferenceKey(selectedScaleUser), "");
|
String exportUri = prefs.getString(getExportPreferenceKey(selectedScaleUser), "");
|
||||||
uri = Uri.parse(exportUri);
|
uri = Uri.parse(exportUri);
|
||||||
getContentResolver().takePersistableUriPermission(uri, Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
|
getContentResolver().takePersistableUriPermission(uri, Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
|
||||||
|
openScale.getFilenameFromUri(uri);
|
||||||
}
|
}
|
||||||
catch (Exception ex) {
|
catch (Exception ex) {
|
||||||
uri = null;
|
uri = null;
|
||||||
|
Reference in New Issue
Block a user