修改非全屏WebFragment标题栏被状态栏遮盖的问题
This commit is contained in:
@ -17,6 +17,7 @@ import android.widget.RelativeLayout;
|
||||
import android.widget.TextView;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
|
||||
import com.gh.base.BaseActivity;
|
||||
import com.gh.common.AppExecutor;
|
||||
@ -91,6 +92,8 @@ public class WebFragment extends NormalFragment implements IScrollable {
|
||||
RelativeLayout newsBottom;
|
||||
@BindView(R.id.closeBtn)
|
||||
RelativeLayout closeBtn;
|
||||
@BindView(R.id.do_not_delete_this_empty_layout)
|
||||
CoordinatorLayout emptyLayout;
|
||||
MenuItem mMenuShare;
|
||||
MenuItem mMenuCollect;
|
||||
|
||||
@ -248,6 +251,10 @@ public class WebFragment extends NormalFragment implements IScrollable {
|
||||
super.onCreate(savedInstanceState);
|
||||
setHasOptionsMenu(true);
|
||||
|
||||
if (getActivity() != null && getActivity() instanceof WebActivity) {
|
||||
emptyLayout.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
Bundle args = getArguments();
|
||||
String webUrl = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user