|
@@ -52,6 +52,7 @@ import com.cooleshow.base.utils.PermissionUtils;
|
|
|
import com.cooleshow.base.utils.ToastUtil;
|
|
|
import com.cooleshow.base.utils.ToastUtils;
|
|
|
import com.cooleshow.base.utils.UriUtils;
|
|
|
+import com.cooleshow.base.utils.helper.QMUIStatusBarHelper;
|
|
|
import com.cooleshow.base.utils.helper.upload.UploadHelper;
|
|
|
import com.cooleshow.base.widgets.DialogUtil;
|
|
|
import com.cooleshow.student.App;
|
|
@@ -196,8 +197,6 @@ public class MallFragment extends BaseMVPFragment<FragmentMallBinding, ShopMallP
|
|
|
initViewLayout();
|
|
|
|
|
|
url = WebConstants.TEACHER_SHOPMALL;
|
|
|
-
|
|
|
- setStatusBarTextColor(false);
|
|
|
headerBbarView.setVisibility(View.GONE);
|
|
|
viewStatusbar.setVisibility(View.VISIBLE);
|
|
|
try {
|
|
@@ -1008,33 +1007,8 @@ public class MallFragment extends BaseMVPFragment<FragmentMallBinding, ShopMallP
|
|
|
|
|
|
@Override
|
|
|
public void setStatusBarTextColor(boolean statusBarTextColor) {
|
|
|
- if (statusBarTextColor) {
|
|
|
- setStatusBarColor();
|
|
|
- } else {
|
|
|
- setStatusBlackBarColor();
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
- public void setStatusBarColor() {
|
|
|
- ImmersionBar.with(this)
|
|
|
- .keyboardEnable(true)
|
|
|
- .transparentStatusBar()
|
|
|
- .statusBarDarkFont(false, 0.2f) //原理:如果当前设备支持状态栏字体变色,会设置状态栏字体为黑色,如果当前设备不支持状态栏字体变色,会使当前状态栏加上透明度,否则不执行透明度
|
|
|
- .autoDarkModeEnable(false)
|
|
|
- .flymeOSStatusBarFontColor(R.color.white) //修改flyme OS状态栏字体颜色
|
|
|
- .init(); //必须调用方可沉浸
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
- public void setStatusBlackBarColor() {
|
|
|
- ImmersionBar.with(this)
|
|
|
- .keyboardEnable(true)
|
|
|
- .transparentStatusBar()
|
|
|
- .statusBarDarkFont(true, 0.2f) //原理:如果当前设备支持状态栏字体变色,会设置状态栏字体为黑色,如果当前设备不支持状态栏字体变色,会使当前状态栏加上透明度,否则不执行透明度
|
|
|
- .autoDarkModeEnable(false)
|
|
|
- .flymeOSStatusBarFontColor(com.cooleshow.base.R.color.common_black) //修改flyme OS状态栏字体颜色
|
|
|
- .init(); //必须调用方可沉浸
|
|
|
- }
|
|
|
|
|
|
@Override
|
|
|
public void onAccompanySelecResult(String id, String name) {
|