1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-21 22:27:29 +00:00
This commit is contained in:
Austin Huang 2021-06-24 11:27:36 -04:00
parent 63df44624e
commit 73c6cc4a5a
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F

View File

@ -187,9 +187,6 @@ public class PostViewV2Fragment extends Fragment implements EditTextDialogFragme
public void onCreate(@Nullable final Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
viewModel = new ViewModelProvider(this).get(PostViewV2ViewModel.class);
final MainActivity activity = (MainActivity) getActivity();
if (activity == null) return;
controller = new WindowInsetsControllerCompat(activity.getWindow(), activity.getRootView());
}
@Nullable
@ -199,6 +196,9 @@ public class PostViewV2Fragment extends Fragment implements EditTextDialogFragme
@Nullable final Bundle savedInstanceState) {
binding = DialogPostViewBinding.inflate(inflater, container, false);
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();
}