I am creating DialogFragment and when I want to override onCreateDialog
I receive the following warning:
not annotated method overrides method annotated with @NonNull
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
return super.onCreateDialog(savedInstanceState);
}
If I want to place that annotation to my method, Android Studio can't find that annotation.
Why is this happening? Thanks for your help.