@Override public void onSuccess() { if (marker != null && marker.isInfoWindowShown()) { marker.showInfoWindow(); } } }
public MarkerAssert hasInfoWindowShown() { isNotNull(); assertThat(actual.isInfoWindowShown()) // .overridingErrorMessage("Expected info window to be shown but was not.") // .isTrue(); return this; }
public MarkerAssert hasInfoWindowNotShown() { isNotNull(); assertThat(actual.isInfoWindowShown()) // .overridingErrorMessage("Expected info window to not be shown but was.") // .isFalse(); return this; }
@Override public void onCheckedChanged(RadioGroup group, int checkedId) { if (mLastSelectedMarker != null && mLastSelectedMarker.isInfoWindowShown()) { // Refresh the info window when the info window's content has changed. mLastSelectedMarker.showInfoWindow(); } } });
@Override public boolean isInfoWindowShown() { if (virtual != null) { return virtual.isInfoWindowShown(); } return false; }
public boolean isInfoWindowShown() { if (marker != null) { return marker.isInfoWindowShown(); } else { return false; } }
@Override public void onClick(View view) { Log.d(TAG, "onClick: clicked place info"); try{ if(mMarker.isInfoWindowShown()){ mMarker.hideInfoWindow(); }else{ Log.d(TAG, "onClick: place info: " + mPlace.toString()); mMarker.showInfoWindow(); } }catch (NullPointerException e){ Log.e(TAG, "onClick: NullPointerException: " + e.getMessage() ); } } });
bikeRentalStation.spacesAvailable); if (entry.getKey().isInfoWindowShown()) { entry.getKey().showInfoWindow();
entry.getValue().setSnippet(generateModeMarkerSnippet(leg)); entry.getValue().setDelayInSeconds(leg.departureDelay); if (entry.getKey().isInfoWindowShown()){ entry.getKey().showInfoWindow();