Browse Source

close #1457

renovate/org.robolectric-robolectric-4.x
Austin Huang 3 years ago
parent
commit
73c6cc4a5a
No known key found for this signature in database GPG Key ID: 84C23AA04587A91F
  1. 6
      app/src/main/java/awais/instagrabber/fragments/PostViewV2Fragment.java

6
app/src/main/java/awais/instagrabber/fragments/PostViewV2Fragment.java

@ -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();
}

Loading…
Cancel
Save