Fix activity drop after logout/login.

This commit is contained in:
dosiecki 2015-02-05 12:57:34 -08:00
parent 819c17d0f6
commit 4929618577

View file

@ -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() {