forked from organicmaps/organicmaps
[android] extract string resource
This commit is contained in:
parent
0b8b5d6927
commit
e613a0e775
2 changed files with 5 additions and 1 deletions
|
@ -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>
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue