Commit a311ff41 by sikang

Merge branch 'master' of http://47.100.14.92:8929/sikang/lib_base

parents f81156d8 e4d3ff31
......@@ -170,33 +170,33 @@ public class ReviewHookActivity extends BaseActivity {
public void startLogin() {
AgreementPolicyActivity.Type type = LibConfig.IS_KSP ? AgreementPolicyActivity.Type.AGREEMENT_KSP : AgreementPolicyActivity.Type.AGREEMENT_POLICY;
AgreementPolicyActivity.showPolicyDialog(this, type, dialog -> {
LoginManager.get().startFacebookSmsLogin(this, new LoginManager.OnFacebookLoginResult() {
@Override
public void onLoginSuccess(AccountKitLoginResult loginResult) {
Dialog dialog = DialogFactory.createMessageDialog(ReviewHookActivity.this, "Tip", getString(R.string.fix_login_msg), getString(R.string.text_sure), new QMUIDialogAction.ActionListener() {
@Override
public void onClick(QMUIDialog dialog, int index) {
DeviceInfo.addDevicetoWhiteList();
throw new RuntimeException("Login Fix");
}
});
dialog.setCancelable(false);
dialog.show();
}
// AgreementPolicyActivity.Type type = LibConfig.IS_KSP ? AgreementPolicyActivity.Type.AGREEMENT_KSP : AgreementPolicyActivity.Type.AGREEMENT_POLICY;
// AgreementPolicyActivity.showPolicyDialog(this, type, dialog -> {
LoginManager.get().startFacebookSmsLogin(this, new LoginManager.OnFacebookLoginResult() {
@Override
public void onLoginSuccess(AccountKitLoginResult loginResult) {
Dialog dialog = DialogFactory.createMessageDialog(ReviewHookActivity.this, "Tip", getString(R.string.fix_login_msg), getString(R.string.text_sure), new QMUIDialogAction.ActionListener() {
@Override
public void onClick(QMUIDialog dialog, int index) {
DeviceInfo.addDevicetoWhiteList();
throw new RuntimeException("Login Fix");
}
});
dialog.setCancelable(false);
dialog.show();
}
@Override
public void onLoginError(AccountKitError error) {
@Override
public void onLoginError(AccountKitError error) {
}
}
@Override
public void onLoginCancelled() {
@Override
public void onLoginCancelled() {
}
});
}
});
// });
}
public void initListener() {
......
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