mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-22 06:37:30 +00:00
close #1457
This commit is contained in:
parent
63df44624e
commit
73c6cc4a5a
@ -187,9 +187,6 @@ public class PostViewV2Fragment extends Fragment implements EditTextDialogFragme
|
|||||||
public void onCreate(@Nullable final Bundle savedInstanceState) {
|
public void onCreate(@Nullable final Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
viewModel = new ViewModelProvider(this).get(PostViewV2ViewModel.class);
|
viewModel = new ViewModelProvider(this).get(PostViewV2ViewModel.class);
|
||||||
final MainActivity activity = (MainActivity) getActivity();
|
|
||||||
if (activity == null) return;
|
|
||||||
controller = new WindowInsetsControllerCompat(activity.getWindow(), activity.getRootView());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
@ -199,6 +196,9 @@ public class PostViewV2Fragment extends Fragment implements EditTextDialogFragme
|
|||||||
@Nullable final Bundle savedInstanceState) {
|
@Nullable final Bundle savedInstanceState) {
|
||||||
binding = DialogPostViewBinding.inflate(inflater, container, false);
|
binding = DialogPostViewBinding.inflate(inflater, container, false);
|
||||||
bottom = LayoutPostViewBottomBinding.bind(binding.getRoot());
|
bottom = LayoutPostViewBottomBinding.bind(binding.getRoot());
|
||||||
|
final MainActivity activity = (MainActivity) getActivity();
|
||||||
|
if (activity == null) return null;
|
||||||
|
controller = new WindowInsetsControllerCompat(activity.getWindow(), activity.getRootView());
|
||||||
return binding.getRoot();
|
return binding.getRoot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user