Commit b1ab37cc by NGUYEN HOANG SON

signout User when deny terms

parent c064d605
......@@ -156,10 +156,17 @@ public abstract class ABVNoAuthenticatedActivity extends ABVActivity {
}
});
messageDialog.setCancelable(false);
messageDialog.setNegativeButton(R.string.disagree, new OnClickListener() {
messageDialog.setNeutralButton(R.string.disagree, new OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
try {
UserAuthenticateLogic user = AbstractLogic.getLogic(UserAuthenticateLogic.class);
if (user.getMemberInfo() != null) {
user.signoutUser();
}
} catch (Exception e) {
Logger.w("signoutUser failed at denyTerms", e);
}
}
});
messageDialog.show();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment