Пример #1
0
 {
     if (intent != null)
     {
         LogUtil.d("Weibo_SSO_login", (new StringBuilder("Login failed: ")).append(intent.getStringExtra("error")).toString());
         mAuthListener.onWeiboException(new WeiboDialogException(intent.getStringExtra("error"), intent.getIntExtra("error_code", -1), intent.getStringExtra("failing_url")));
         return;
     } else
     {
         LogUtil.d("Weibo_SSO_login", "Login canceled by user.");
         mAuthListener.onCancel();
         return;
     }
 }
Пример #2
0
 {
     if (s.equals("access_denied") || s.equals("OAuthAccessDeniedException"))
     {
         LogUtil.d("Weibo_SSO_login", "Login canceled by user.");
         mAuthListener.onCancel();
         return;
     }
     String s1 = intent.getStringExtra("error_description");
     if (s1 != null)
     {
         s = (new StringBuilder(String.valueOf(s))).append(":").append(s1).toString();
     }
     LogUtil.d("Weibo_SSO_login", (new StringBuilder("Login failed: ")).append(s).toString());
     mAuthListener.onWeiboException(new WeiboDialogException(s, j, s1));
     return;
 }