(Context context, Intent intent)
| 3204 | } |
| 3205 | |
| 3206 | static void openAdvanced(Context context, Intent intent) { |
| 3207 | // https://issuetracker.google.com/issues/72053350 |
| 3208 | intent.putExtra("android.content.extra.SHOW_ADVANCED", true); |
| 3209 | intent.putExtra("android.content.extra.FANCY", true); |
| 3210 | intent.putExtra("android.content.extra.SHOW_FILESIZE", true); |
| 3211 | intent.putExtra("android.provider.extra.SHOW_ADVANCED", true); |
| 3212 | |
| 3213 | SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); |
| 3214 | String default_folder = prefs.getString("default_folder", null); |
| 3215 | if (default_folder != null) |
| 3216 | intent.putExtra(DocumentsContract.EXTRA_INITIAL_URI, Uri.parse(default_folder)); |
| 3217 | } |
| 3218 | |
| 3219 | static class ByteArrayInOutStream extends ByteArrayOutputStream { |
| 3220 | public ByteArrayInOutStream() { |
no test coverage detected