Possible crash fix
This commit is contained in:
parent
a64fb46722
commit
56cda6025c
1 changed files with 8 additions and 2 deletions
|
@ -110,8 +110,14 @@ public abstract class MapControls {
|
|||
return gravity;
|
||||
}
|
||||
|
||||
protected void removeButton(FrameLayout layout, View 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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue