diff --git a/app/src/main/java/com/money/manager/ex/core/docstorage/FileStorageHelper.java b/app/src/main/java/com/money/manager/ex/core/docstorage/FileStorageHelper.java index eaf5d6ed5..a6cb656a6 100644 --- a/app/src/main/java/com/money/manager/ex/core/docstorage/FileStorageHelper.java +++ b/app/src/main/java/com/money/manager/ex/core/docstorage/FileStorageHelper.java @@ -65,8 +65,6 @@ public void showStorageFilePicker() { host.startActivityForResult(intent, requestCode); } catch (ActivityNotFoundException e) { Timber.e(e, "No storage providers found."); - - showSelectLocalFileDialog(); } } @@ -356,34 +354,6 @@ private void downloadDatabase(Uri uri, String localPath) throws Exception { Files.move(tempDatabaseFile, localDatabaseFile); } - /** - * Shows a file picker. The results from the picker will be sent to the host activity. - * This is a custom picker that works with local files only. - * Uses SELECT_FILE request code. - */ - private void showSelectLocalFileDialog() { - int requestCode = RequestCodes.SELECT_FILE; - AppCompatActivity host = (AppCompatActivity) _host; - - //MmxDatabaseUtils dbUtils = new MmxDatabaseUtils(host); - DatabaseManager dbManager = new DatabaseManager(getContext()); - String dbDirectory = dbManager.getDefaultDatabaseDirectory(); - // Environment.getDefaultDatabaseDirectory().getPath() - - // This works if you defined the intent filter - Intent intent = new Intent(Intent.ACTION_GET_CONTENT); - intent.setType("*/*"); - // Set these depending on your use case. These are the defaults. - - // Configure initial directory by specifying a String. - // You could specify a String like "/storage/emulated/0/", but that can - // dangerous. Always use Android's API calls to get paths to the SD-card or - // internal memory. - // Environment.getExternalStorageDirectory().getPath() - - host.startActivityForResult(intent, requestCode); - } - /** * Reads the date/time when the local database file was last changed. * @return The date/time of the last change