1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-23 17:15:09 +01:00

Merge pull request #586 from coffeemakr/fix-spaces-in-folder

Fix download path handling (#580)
This commit is contained in:
Christian Schabesberger 2017-06-16 18:05:05 +02:00 committed by GitHub
commit f3eacac4ce

View File

@ -91,7 +91,7 @@ public class SettingsFragment extends PreferenceFragment implements SharedPrefer
if ((requestCode == REQUEST_DOWNLOAD_PATH || requestCode == REQUEST_DOWNLOAD_AUDIO_PATH) && resultCode == Activity.RESULT_OK) {
String key = getString(requestCode == REQUEST_DOWNLOAD_PATH ? R.string.download_path_key : R.string.download_path_audio_key);
String path = data.getData().toString().substring(7);
String path = data.getData().getPath();
defaultPreferences.edit().putString(key, path).apply();
updatePreferencesSummary();
} else if (requestCode == REQUEST_INSTALL_ORBOT) {