After implementing the below dependency in app level Gradle
implementation "androidx.fragment:fragment:1.3.0-beta02"
implementation "androidx.activity:activity:1.2.0-beta02"
I found the below warning in my fragment in onActivityCreated method
Overrides deprecated method in 'androidx.fragment.app.Fragment'
What might be the new way of implementing this method. Below is my onActivityCreated method
@Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
mainViewModel = new ViewModelProvider(this).get(MainViewModel.class);
}
I am using the dependency for requestPermissionLauncher.