Do not show dialog if activity has been closed

Should fix BadTokenException in OnlineFeedViewActivity
This commit is contained in:
daniel oeh 2014-05-31 11:09:58 +02:00
parent cdee2f8278
commit aeb3e99938
1 changed files with 4 additions and 1 deletions

View File

@ -299,7 +299,10 @@ public abstract class OnlineFeedViewActivity extends ActionBarActivity {
finish();
}
});
builder.show();
if (!isFinishing()) {
builder.show();
}
}
private class FeedViewAuthenticationDialog extends AuthenticationDialog {