Fix page restoration when re-opening media keyboard.

This commit is contained in:
Alex Hart
2022-01-25 09:47:05 -04:00
parent a0031298d8
commit 926f5b3cdf

View File

@@ -2726,7 +2726,7 @@ public class ConversationParentFragment extends Fragment
}
private void initializeMediaKeyboardProviders() {
KeyboardPagerViewModel keyboardPagerViewModel = new ViewModelProvider(this).get(KeyboardPagerViewModel.class);
KeyboardPagerViewModel keyboardPagerViewModel = new ViewModelProvider(requireActivity()).get(KeyboardPagerViewModel.class);
switch (TextSecurePreferences.getMediaKeyboardMode(requireContext())) {
case EMOJI: