From 21a3b19894807c46f96e2106a5acb92d8afbd720 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 30 九月 2020 17:28:17 +0800 Subject: [PATCH] 百度内容输出集成 --- BuWanVideo/src/com/weikou/beibeivideo/ui/login/LoginActivity.java | 20 +++++++------------- 1 files changed, 7 insertions(+), 13 deletions(-) diff --git a/BuWanVideo/src/com/weikou/beibeivideo/ui/login/LoginActivity.java b/BuWanVideo/src/com/weikou/beibeivideo/ui/login/LoginActivity.java index 419e819..e7ba066 100644 --- a/BuWanVideo/src/com/weikou/beibeivideo/ui/login/LoginActivity.java +++ b/BuWanVideo/src/com/weikou/beibeivideo/ui/login/LoginActivity.java @@ -50,15 +50,11 @@ import java.util.Map; public class LoginActivity extends BaseActivity implements OnClickListener { - // private Tencent mTencent; public static final int RESULT_LOGIN = 10; - // private UserInfo mInfo; private ProgressDialog dialog; private LinearLayout ll_login_qq, ll_login_wx; - private TextView tv_cancel;// 鍙栨秷 private boolean isTouchLogin;// 鐢ㄦ埛鏄惁鐐瑰嚮鐧诲綍 private String uid; - // private IUiListener listener;// 鐢ㄤ簬鎺ユ敹杩斿洖鏁版嵁鐨勭洃鍚� private String loginType = "";// 鐧诲綍绫诲瀷 榛樿涓虹┖瀛楃 QQ涓�1 private String openId = "";// 鐢ㄦ埛绗笁鏂圭櫥褰曞敮涓�璇嗗埆鐮� @@ -93,18 +89,17 @@ } uid = getSharedPreferences("user", Context.MODE_PRIVATE).getString( "uid", ""); - tv_cancel = (TextView) findViewById(R.id.login_tv_cancel); ll_login_qq = findViewById(R.id.ll_login_qq); - tv_cancel.setOnClickListener(this); findViewById(R.id.ll_login_qq).setOnClickListener(this); findViewById(R.id.ll_login_wx).setOnClickListener(this); -// aq.id(R.id.ll_login_qq).click(this); -// aq.id(R.id.ll_login_wx).click(this); - // Tencent绫绘槸SDK鐨勪富瑕佸疄鐜扮被锛屽紑鍙戣�呭彲閫氳繃Tencent绫昏闂吘璁紑鏀剧殑OpenAPI銆� - // 鍏朵腑APP_ID鏄垎閰嶇粰绗笁鏂瑰簲鐢ㄧ殑appid锛岀被鍨嬩负String銆傛祴璇曞彿222222 鏈ㄧ摐褰辫澶у叏涓撶敤鍙�1104492673 -// mTencent = Tencent.createInstance(BeibeiConstant.QQ_ID, -// this.getApplicationContext()); + findViewById(R.id.login_tv_cancel).setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View v) { + finish(); + } + }); + dialog = new ProgressDialog(this); ll_login_content = (LinearLayout) findViewById(R.id.ll_login_content); @@ -348,7 +343,6 @@ * 閿佸畾杩斿洖 */ private void lockBack(boolean isSure) { - tv_cancel.setEnabled(!isSure); isTouchLogin = isSure; } -- Gitblit v1.8.0