Skip to content
This repository was archived by the owner on Apr 9, 2021. It is now read-only.

Commit 3775bd5

Browse files
fixed lint issue
1 parent 1af79dd commit 3775bd5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

skunkworks_crow/src/main/java/org/odk/share/views/ui/settings/SettingsActivity.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,14 @@ private void showPasswordDialog() {
187187
public void chooseDirectory() {
188188
Intent i = new Intent(Intent.ACTION_OPEN_DOCUMENT_TREE);
189189
i.addCategory(Intent.CATEGORY_DEFAULT);
190-
startActivityForResult(Intent.createChooser(i, "choose directory"), DIRECTORY_REQUEST_CODE);
190+
startActivityForResult(Intent.createChooser(i, getString(R.string.choose_directory)), DIRECTORY_REQUEST_CODE);
191191
}
192192

193193
public void onActivityResult(int requestCode, int resultCode, Intent data) {
194194
switch (requestCode) {
195195
case DIRECTORY_REQUEST_CODE:
196196
try {
197-
String filePath = data.getData().getPath() + "/odk";
197+
String filePath = data.getData().getPath() + getString(R.string.directory_odk);
198198
prefs.edit().putString(PreferenceKeys.KEY_ODK_DESTINATION_DIRECTORY_PICKER, filePath).apply();
199199
prefs.edit().putString(PreferenceKeys.KEY_ODK_DESTINATION_DIR_EDIT_TEXT, null).apply();
200200
odkDestinationDirPreferenceDirectoryPicker.setSummary(prefs.getString(PreferenceKeys.KEY_ODK_DESTINATION_DIRECTORY_PICKER, getString(R.string.default_odk_destination_dir)));

0 commit comments

Comments
 (0)