PlanActivity: Disable context menu if station hasn't got an ID.

This commit is contained in:
Andreas Schildbach 2018-10-14 10:35:01 +02:00
parent 513b2b1609
commit 84b6920c06

View file

@ -337,6 +337,9 @@ public class PlanActivity extends Activity {
layoutParams.x = coords[0]; layoutParams.x = coords[0];
layoutParams.y = coords[1]; layoutParams.y = coords[1];
bubble.requestLayout(); bubble.requestLayout();
bubble.setEnabled(selection.location.hasId());
} else {
bubble.setEnabled(false);
} }
} }