Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -107,13 +107,24 @@ protected boolean onBalloonTap(int index, Item item) {
*/
protected void onBalloonOpen(int index) {}

/* (non-Javadoc)
/**
* Override this method for custom handling of tapping an item.
* By default, tapping inflates the balloon of the item.
* @see com.google.android.maps.ItemizedOverlay#onTap(int)
*/
@Override
//protected final boolean onTap(int index) {
public final boolean onTap(int index) {

public boolean onTap(int index) {
inflateBalloon(index);
return true;
}

/**
* Inflate the balloon of an item, as usually happens
* when the item is tapped.
* @param index The item to show a balloon for
*/
public void inflateBalloon(int index) {
handler.removeCallbacks(finishBalloonInflation);
isInflating = true;
handler.postDelayed(finishBalloonInflation, BALLOON_INFLATION_TIME);
Expand All @@ -128,8 +139,6 @@ public final boolean onTap(int index) {
if (snapToCenter) {
animateTo(index, currentFocusedItem.getPoint());
}

return true;
}

/**
Expand Down