diff options
author | Arsentiy Milchakov <milcars@mapswithme.com> | 2018-09-20 15:11:06 +0300 |
---|---|---|
committer | Aleksey Belousov <beloal@users.noreply.github.com> | 2018-09-25 11:56:55 +0300 |
commit | 5d9fb552e1cc821a25369e1c960c5597fbbf93b5 (patch) | |
tree | 3b66c6261373ea80493fd2898e1189605b12e4d9 /android/src/com/mapswithme/maps/editor | |
parent | 0a254cf68ae046596dc19b41e377fa29f9b265af (diff) |
[types_strings][bookmarks] bookmarks localization logic is moved to platforms
Diffstat (limited to 'android/src/com/mapswithme/maps/editor')
-rw-r--r-- | android/src/com/mapswithme/maps/editor/FeatureCategoryAdapter.java | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/android/src/com/mapswithme/maps/editor/FeatureCategoryAdapter.java b/android/src/com/mapswithme/maps/editor/FeatureCategoryAdapter.java index c7c4c86615..ec14e08caa 100644 --- a/android/src/com/mapswithme/maps/editor/FeatureCategoryAdapter.java +++ b/android/src/com/mapswithme/maps/editor/FeatureCategoryAdapter.java @@ -51,24 +51,26 @@ public class FeatureCategoryAdapter extends RecyclerView.Adapter<FeatureCategory protected class FeatureViewHolder extends RecyclerView.ViewHolder { - TextView name; - View selected; + @NonNull + private final TextView mName; + @NonNull + private final View mSelected; - FeatureViewHolder(View itemView) + FeatureViewHolder(@NonNull View itemView) { super(itemView); - name = (TextView) itemView.findViewById(R.id.name); - selected = itemView.findViewById(R.id.selected); - UiUtils.hide(selected); + mName = itemView.findViewById(R.id.name); + mSelected = itemView.findViewById(R.id.selected); + UiUtils.hide(mSelected); itemView.setOnClickListener(v -> onCategorySelected(getAdapterPosition())); } public void bind(int position) { - name.setText(mCategories[position].getLocalizedTypeName()); + mName.setText(mCategories[position].getLocalizedTypeName()); boolean showCondition = mSelectedCategory != null && mCategories[position].getType().equals(mSelectedCategory.getType()); - UiUtils.showIf(showCondition, selected); + UiUtils.showIf(showCondition, mSelected); } } |