更换沉浸栏实现方法, actionBar menu 修改

This commit is contained in:
kehaoyuan
2017-09-27 11:28:07 +08:00
parent 0947cd1e24
commit 5b361afc67
20 changed files with 75 additions and 303 deletions

View File

@ -1,6 +1,5 @@
package com.gh.base;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.view.View;
@ -19,7 +18,6 @@ import com.gh.gamecenter.R;
import com.gh.gamecenter.eventbus.EBShowDialog;
import com.lightgame.download.FileUtils;
import com.lightgame.utils.AppManager;
import com.readystatesoftware.systembartint.SystemBarTintManager.SystemBarConfig;
import org.greenrobot.eventbus.EventBus;
import org.greenrobot.eventbus.Subscribe;
@ -59,10 +57,6 @@ public abstract class BaseActivity extends BaseAppCompatToolBarActivity implemen
}
private void init(View contentView) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
SystemBarConfig config = getTintManager().getConfig();
contentView.setPadding(0, config.getPixelInsetTop(false), 0, config.getPixelInsetBottom());
}
setContentView(contentView);
ButterKnife.bind(this);