Possible crash fix

This commit is contained in:
Alexey Pelykh 2014-12-15 17:29:47 +02:00
parent a64fb46722
commit 56cda6025c

View file

@ -110,8 +110,14 @@ public abstract class MapControls {
return gravity;
}
protected void removeButton(FrameLayout layout, View b) {
layout.removeView(b);
protected void removeButton(final FrameLayout layout, final View b) {
b.setVisibility(View.GONE);
layout.getHandler().post(new Runnable() {
@Override
public void run() {
layout.removeView(b);
}
});
mapActivity.accessibleContent.remove(b);
}