admin
2021-04-07 cbb88109494ffc7916f6639c20ce05c0cec941a9
BuWanVideo/src/com/weikou/beibeivideo/ui/mine/SystemMessageActivity.java
@@ -22,6 +22,7 @@
import com.weikou.beibeivideo.R;
import com.weikou.beibeivideo.db.MessageTable;
import com.weikou.beibeivideo.ui.BaseActivity;
import com.weikou.beibeivideo.util.ui.TopStatusSettings;
import java.util.Date;
@@ -45,22 +46,7 @@
        super.onCreate(arg0);
        setContentView(R.layout.system_message_activity);
        /*
         * 计算状态栏高度并设置
         */
        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);
        }
        TopStatusSettings.setStatusViewAndDeepColor(this);
        tv_top_bar_left = findViewById(R.id.tv_top_bar_left);
        tv_top_bar_middle = findViewById(R.id.tv_top_bar_middle);
        tv_top_bar_left.setOnClickListener(this);
@@ -177,15 +163,11 @@
    @Override
    public void onResume() {
        super.onResume();
//        EventBus.getDefault().register(this);
        MobclickAgent.onPageStart("我的消息");
    }
    @Override
    public void onPause() {
        super.onPause();
//        EventBus.getDefault().unregister(this);
        MobclickAgent.onPageEnd("我的消息");
    }
    @Override