Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2017-06-19 12:46:26 +02:00
commit 451910763d
1 changed files with 1 additions and 1 deletions

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) { 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 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(); defaultPreferences.edit().putString(key, path).apply();
updatePreferencesSummary(); updatePreferencesSummary();
} else if (requestCode == REQUEST_INSTALL_ORBOT) { } else if (requestCode == REQUEST_INSTALL_ORBOT) {