mButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
onButtonClick();
}
<BUG>});
content.addView(mButton);</BUG>
}
@Override
public void onActivityResumed(Activity activity) {

mButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
onButtonClick();
}
});
if (mButton.getParent() != null) {
((ViewGroup) mButton.getParent()).removeView(mButton);
}
content.addView(mButton);
}
@Override
public void onActivityResumed(Activity activity) {
