Fix strings

This commit is contained in:
max-klaus 2019-11-06 11:09:32 +03:00
commit be45c32635
3 changed files with 5 additions and 1 deletions

View file

@ -3335,4 +3335,6 @@
<string name="profile_import">Импорт профиля:</string>
<string name="profile_import_descr">Чтобы импортировать профиль, выберите его файл на устройстве и откройте его с помощью OsmAnd.</string>
<string name="file_imported_successfully">%1$s успешно импортирован.</string>
<string name="rendering_value_white_name">Белый</string>
<string name="rendering_value_yellow_name">Желтый</string>
</resources>

View file

@ -11,6 +11,8 @@
Thx - Hardy
-->
<string name="rendering_value_white_name">White</string>
<string name="rendering_value_yellow_name">Yellow</string>
<string name="swap_two_places">Swap %1$s and %2$s</string>
<string name="route_start_point">Starting point</string>
<string name="export_profile">Export profile</string>

View file

@ -164,7 +164,7 @@ public class ImportHelper {
private String getNameFromContentUri(Uri contentUri) {
final String name;
final Cursor returnCursor = app.getContentResolver().query(contentUri, null, null, null, null);
final Cursor returnCursor = app.getContentResolver().query(contentUri, new String[] {OpenableColumns.DISPLAY_NAME}, null, null, null);
if (returnCursor != null && returnCursor.moveToFirst()) {
int columnIndex = returnCursor.getColumnIndex(OpenableColumns.DISPLAY_NAME);
if (columnIndex != -1) {