Code:
public PlacePickerFragment() {
this(null);
}
public PlacePickerFragment(Bundle args) {
super(GraphPlace.class, R.layout.com_facebook_placepickerfragment, args);
setPlacePickerSettingsFromBundle(args);
}
Hello, I want to remove deprecation warning from code above, is there a way changed it to default constructor?
When you create your fragment, use setArgument():
And use fragment’s default constructor. You may need to call
setPlacePickerSettingsFromBundle()after you have set the arguments, something like this: