rename createHeaderInGroup and change imageButton

This commit is contained in:
Chumva 2018-04-17 16:51:22 +03:00
parent bdc795404a
commit a46f28501f
2 changed files with 6 additions and 9 deletions

View file

@ -27,14 +27,11 @@
android:layout_height="@dimen/map_button_shadow_width"
android:background="?attr/selectableItemBackground">
<ImageButton
<ImageView
android:id="@+id/icon_left"
android:layout_width="@dimen/map_button_shadow_width"
android:layout_height="@dimen/map_button_shadow_width"
android:focusableInTouchMode="true"
android:visibility="invisible"
tools:background="@drawable/marker_circle_background_dark_with_inset"
tools:src="@drawable/ic_action_marker_passed" />
android:visibility="invisible" />
<LinearLayout
android:layout_width="0dp"

View file

@ -418,7 +418,7 @@ public class MapMarkersHelper {
if (mapMarkersGroup.getId() == null || mapMarkersGroup.getName() == null) {
return;
}
createHeaderInGroup(mapMarkersGroup);
createHeadersInGroup(mapMarkersGroup);
int historyMarkersCount = mapMarkersGroup.getHistoryMarkers().size();
ShowHideHistoryButton showHideHistoryButton = mapMarkersGroup.getShowHideHistoryButton();
if (showHideHistoryButton != null) {
@ -460,7 +460,7 @@ public class MapMarkersHelper {
}
}
private void createHeaderInGroup(@NonNull MapMarkersGroup group) {
private void createHeadersInGroup(@NonNull MapMarkersGroup group) {
GroupHeader header = new GroupHeader();
CategoriesHeader categoriesHeader = new CategoriesHeader();
WikivoyageArticleHeader wikivoyageArticleHeader = new WikivoyageArticleHeader();
@ -541,7 +541,7 @@ public class MapMarkersHelper {
if (search == null && selected.getGpxFile() != null && selected.getGpxFile().path != null) {
MapMarkersGroup group = createGPXMarkerGroup(new File(selected.getGpxFile().path));
group.disabled = true;
createHeaderInGroup(group);
createHeadersInGroup(group);
res.add(group);
}
}
@ -562,7 +562,7 @@ public class MapMarkersHelper {
if (search == null) {
MapMarkersGroup group = createGPXMarkerGroup(path);
group.disabled = true;
createHeaderInGroup(group);
createHeadersInGroup(group);
res.add(group);
}
}