Fixed a bug with update fragments not being replaced properly since they had been removed from their original containers

pull/14/head
Sam Bosley 13 years ago
parent 409790bdb0
commit 069cf6a659

@ -182,6 +182,15 @@ public class TaskListActivity extends AstridActivity implements MainMenuListener
private void createCommentsPopover() {
commentsPopover = new FragmentPopover(this, R.layout.taskedit_popover);
commentsPopover.setOnDismissListener(new OnDismissListener() {
@Override
public void onDismiss() {
TagUpdatesFragment frag = getTagUpdatesFragment();
FrameLayout parent = (FrameLayout) frag.getView().getParent();
parent.removeView(frag.getView());
((FrameLayout) findViewById(R.id.taskedit_fragment_container)).addView(frag.getView());
}
});
}
private void createMainMenuPopover() {

Loading…
Cancel
Save