mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Fix activity drop after logout/login.
This commit is contained in:
parent
819c17d0f6
commit
4929618577
1 changed files with 3 additions and 0 deletions
|
@ -19,6 +19,9 @@ public class LogoutDialogFragment extends DialogFragment {
|
|||
@Override
|
||||
public void onClick(DialogInterface dialogInterface, int i) {
|
||||
PrefsUtils.logout(getActivity());
|
||||
// make sure the instance of Main that called us is killed now, or else the system
|
||||
// might try to recycle it with a stale login ID, which will cause it to self-destruct
|
||||
getActivity().finish();
|
||||
}
|
||||
});
|
||||
builder.setNegativeButton(R.string.alert_dialog_cancel, new DialogInterface.OnClickListener() {
|
||||
|
|
Loading…
Add table
Reference in a new issue