|
@@ -49,6 +49,7 @@ import com.cooleshow.base.utils.AppUtils;
|
|
|
import com.cooleshow.base.utils.MyFileUtils;
|
|
|
import com.cooleshow.base.utils.PermissionUtils;
|
|
|
import com.cooleshow.base.utils.ToastUtil;
|
|
|
+import com.cooleshow.base.utils.Utils;
|
|
|
import com.cooleshow.base.widgets.DialogUtil;
|
|
|
import com.cooleshow.student.R;
|
|
|
import com.cooleshow.student.api.APIService;
|
|
@@ -183,7 +184,7 @@ public class MallFragment extends BaseMVPFragment<FragmentMallBinding, ShopMallP
|
|
|
@Override
|
|
|
protected void initView(View rootView) {
|
|
|
initViewLayout();
|
|
|
-
|
|
|
+ Utils.setHeadView(viewStatusbar, getContext(), 0);
|
|
|
url = WebConstants.TEACHER_SHOPMALL;
|
|
|
headerBbarView.setVisibility(View.GONE);
|
|
|
viewStatusbar.setVisibility(View.VISIBLE);
|
|
@@ -414,7 +415,8 @@ public class MallFragment extends BaseMVPFragment<FragmentMallBinding, ShopMallP
|
|
|
@Override
|
|
|
public void getNavHeight(JSONObject message) {
|
|
|
try {
|
|
|
- message.getJSONObject("content").put("navHeight", getResources().getDimension(com.cooleshow.base.R.dimen.statusbar_view_height));
|
|
|
+ int statusBarHeight = Utils.getCurrentStatusBarHeight(getContext());
|
|
|
+ message.getJSONObject("content").put("navHeight", statusBarHeight != 0 ? statusBarHeight : getResources().getDimension(com.cooleshow.base.R.dimen.statusbar_view_height));
|
|
|
message.getJSONObject("content").put("titleHeight", getResources().getDimension(com.cooleshow.base.R.dimen.dp_44));
|
|
|
message.getJSONObject("content").put("dpi", getResources().getDisplayMetrics().density);
|
|
|
} catch (JSONException e) {
|