Skip to content

Commit

Permalink
Dont show empty toast in feature pick example (#379)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahsnow1 authored May 24, 2017
1 parent 11b7aa6 commit 330718c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ public void onFeaturePick(Map<String, String> properties, float positionX, float
} else {
title = properties.get(PROP_NAME);
}
Toast.makeText(FeaturePickListenerActivity.this, title, Toast.LENGTH_SHORT).show();
if (title != null && !title.isEmpty()) {
Toast.makeText(FeaturePickListenerActivity.this, title, Toast.LENGTH_SHORT).show();
}
}
};

Expand Down

0 comments on commit 330718c

Please sign in to comment.