mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 21:03:54 +01:00
* ic_custom_greyed_out_marker: removing grey marker * NearbyParentFragment: changing function name and description * change method name to hideAllMarkers
This commit is contained in:
parent
af97e40c13
commit
96f4a5c08f
2 changed files with 15 additions and 12 deletions
|
|
@ -1050,7 +1050,7 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment
|
|||
|
||||
@Override
|
||||
public void filterOutAllMarkers() {
|
||||
greyOutAllMarkers();
|
||||
hideAllMArkers();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -1077,7 +1077,8 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment
|
|||
boolean filterForPlaceState,
|
||||
boolean filterForAllNoneType) {
|
||||
if (selectedLabels.size() == 0 && filterForPlaceState) { // If nothing is selected, display all
|
||||
greyOutAllMarkers();
|
||||
// remove the previous markers before updating them
|
||||
hideAllMArkers();
|
||||
for (MarkerPlaceGroup markerPlaceGroup : NearbyController.markerLabelList) {
|
||||
if (displayExists && displayNeedsPhoto) {
|
||||
// Exists and needs photo
|
||||
|
|
@ -1101,8 +1102,8 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment
|
|||
|
||||
}
|
||||
} else {
|
||||
// First greyed out all markers
|
||||
greyOutAllMarkers();
|
||||
// First remove all the markers
|
||||
hideAllMArkers();
|
||||
for (MarkerPlaceGroup markerPlaceGroup : NearbyController.markerLabelList) {
|
||||
for (Label label : selectedLabels) {
|
||||
if (markerPlaceGroup.getPlace().getLabel().toString().equals(label.toString())) {
|
||||
|
|
@ -1186,9 +1187,11 @@ public class NearbyParentFragment extends CommonsDaggerSupportFragment
|
|||
}
|
||||
|
||||
/**
|
||||
* Greys out all markers except current location marker
|
||||
* Removes all markers except current location marker, an icon has been used
|
||||
* but it is transparent more than grey(as the name of the icon might suggest)
|
||||
* since grey icon may lead the users to believe that it is disabled or prohibited contribution
|
||||
*/
|
||||
private void greyOutAllMarkers() {
|
||||
private void hideAllMArkers() {
|
||||
if(currentLocationMarker==null){
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue