Do not show dialog if activity has been closed
Should fix BadTokenException in OnlineFeedViewActivity
This commit is contained in:
parent
cdee2f8278
commit
aeb3e99938
|
@ -299,7 +299,10 @@ public abstract class OnlineFeedViewActivity extends ActionBarActivity {
|
|||
finish();
|
||||
}
|
||||
});
|
||||
builder.show();
|
||||
|
||||
if (!isFinishing()) {
|
||||
builder.show();
|
||||
}
|
||||
}
|
||||
|
||||
private class FeedViewAuthenticationDialog extends AuthenticationDialog {
|
||||
|
|
Loading…
Reference in New Issue