Fix review
This commit is contained in:
parent
eb17dc0563
commit
f5a5bb8624
2 changed files with 4 additions and 3 deletions
|
@ -21,7 +21,7 @@
|
|||
<string name="app_mode_wheelchair">Wheelchair</string>
|
||||
<string name="app_mode_motor_scooter">Motor scooter</string>
|
||||
<string name="app_mode_enduro_motorcycle">Enduro motorcycle</string>
|
||||
<string name="add_hidden_group_info">The added point will not be visible on the map, since the selected group is hidden, you can find it in "My places".</string>
|
||||
<string name="add_hidden_group_info">The added point will not be visible on the map, since the selected group is hidden, you can find it in \"%s\".</string>
|
||||
<string name="plugin_wikipedia_description">Get information about points of interest from Wikipedia. It is your pocket offline guide - just enable Wikipedia plugin and enjoy articles about objects around you.</string>
|
||||
<string name="search_download_wikipedia_maps">Download Wikipedia maps</string>
|
||||
<string name="quick_action_remove_next_destination_descr">The current destination point on the route will be deleted. If it will be the Destination, navigation will stop.</string>
|
||||
|
|
|
@ -157,6 +157,7 @@ public abstract class PointEditorFragmentNew extends BaseOsmAndFragment {
|
|||
ImageView groupListIcon = (ImageView) view.findViewById(R.id.group_list_button_icon);
|
||||
groupListIcon.setImageDrawable(app.getUIUtilities().getIcon(R.drawable.ic_action_group_select_all, activeColorResId));
|
||||
addToHiddenGroupInfo = view.findViewById(R.id.add_hidden_group_info);
|
||||
addToHiddenGroupInfo.setText(getString(R.string.add_hidden_group_info, getString(R.string.shared_string_my_places)));
|
||||
View groupList = view.findViewById(R.id.group_list_button);
|
||||
groupList.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
|
@ -891,18 +892,18 @@ public abstract class PointEditorFragmentNew extends BaseOsmAndFragment {
|
|||
}
|
||||
});
|
||||
} else {
|
||||
final String group = items.get(position);
|
||||
holder.groupButton.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
int previousSelectedPosition = getItemPosition(selectedItemName);
|
||||
selectedItemName = items.get(holder.getAdapterPosition());
|
||||
updateColorSelector(getCategoryColor(selectedItemName), groupRecyclerView.getRootView());
|
||||
addToHiddenGroupInfo.setVisibility(isCategoryVisible(group) ? View.GONE : View.VISIBLE);
|
||||
addToHiddenGroupInfo.setVisibility(isCategoryVisible(selectedItemName) ? View.GONE : View.VISIBLE);
|
||||
notifyItemChanged(holder.getAdapterPosition());
|
||||
notifyItemChanged(previousSelectedPosition);
|
||||
}
|
||||
});
|
||||
final String group = items.get(position);
|
||||
holder.groupName.setText(group);
|
||||
holder.pointsCounter.setText(String.valueOf(getCategoryPointsCount(group)));
|
||||
int strokeColor;
|
||||
|
|
Loading…
Reference in a new issue