[android] extract string resource

This commit is contained in:
Roman Romanov 2017-04-26 11:20:24 +04:00 committed by r.kuznetsov
parent 0b8b5d6927
commit e613a0e775
2 changed files with 5 additions and 1 deletions

View file

@ -76,4 +76,6 @@
<!-- Tags -->
<string name="tag_menu_collapse" translatable="false">collapse</string>
<string name="tag_height_limited" translatable="false">height limited</string>
<string name="search_hotel_filter" translatable="false">search_hotel_filter_%s</string>
</resources>

View file

@ -12,6 +12,7 @@ import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.mapswithme.maps.MwmApplication;
import com.mapswithme.maps.R;
import com.mapswithme.util.UiUtils;
import com.mapswithme.util.log.Logger;
@ -27,7 +28,8 @@ class HotelsTypeAdapter extends RecyclerView.Adapter<HotelsTypeAdapter.HotelsTyp
private static final String TAG = HotelsTypeAdapter.class.getName();
@NonNull
private static final String SEARCH_HOTEL_FILTER = "search_hotel_filter_%s";
private static final String SEARCH_HOTEL_FILTER = MwmApplication
.get().getString(R.string.search_hotel_filter);
@NonNull
private static final HotelsFilter.HotelType[] TYPES = SearchEngine.nativeGetHotelTypes();