私はSdk Oreo 8.0をアップデートしました。私は現在のフラグメントを私の前のフラグメントに持ってきます。なぜなら私はif(view == null) 正常に動作しますが、再度読み込む必要があります。もしフラグメント化されていれば(ビュー== null)
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container,
@Nullable Bundle savedInstanceState) {
if (view == null) {
view = inflater.inflate(R.layout.home_fragement_layout, container, false);
ButterKnife.bind(this, view);
bundle=getArguments();
registrationResponse=(RegistrationResponse)bundle.getSerializable("registerresponse");
setadapter();
hitUserFavouriteOutfitsapi();
swipeRefreshLayout.setOnRefreshListener(this);
}
toolBarTopChangeState =((ToolBarTopChangeState)context);
toolBarTopChangeState.stateChangeToolBarIcon(0);
toolBarTopChangeState.stateChangeToolBarText(getString(R.string.app_name));
return view;
}
'if(view == null){'なぜ '=' null'がチェックされていますか? –
@Sanoopそれは 'ADAPTER'セクションで動作します。 –
クラッシュログを追加してください。 – Sanjeet