admin
2021-02-20 f8a5683d08f2e6f832578b2fd5c795888ddcae64
BuWanVideo/src/com/weikou/beibeivideo/ui/login/LoginActivity.java
@@ -67,22 +67,7 @@
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.act_login);
        /*
         * 计算状态栏高度并设置
         */
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            int result = 0;
            int resourceId = getResources().getIdentifier("status_bar_height",
                    "dimen", "android");
            if (resourceId > 0) {
                result = getResources().getDimensionPixelSize(resourceId);
            }
            LayoutParams params = new LayoutParams(LayoutParams.MATCH_PARENT,
                    result);
            findViewById(R.id.v_status_bar).setLayoutParams(params);
        } else {
            findViewById(R.id.v_status_bar).setVisibility(View.GONE);
        }
        initStatusBar();
        uid = getSharedPreferences("user", Context.MODE_PRIVATE).getString(
                "uid", "");
        ll_login_qq = findViewById(R.id.ll_login_qq);
@@ -297,7 +282,6 @@
            SingleToast.showToast(this, "账号或密码为空!");
            return;
        }
        SingleToast.showToast(this, "开始登录了");
        BeibeiVideoAPI.emailLogin(this, uid, name, pwd, new BasicTextHttpResponseHandler() {
            @Override
            public void onSuccessPerfect(int statusCode, Header[] headers, JSONObject jsonObject) throws Exception {