// The create bookmark listener is initialized in `onAttach()` and used in `onCreateDialog()`.
private CreateBookmarkListener createBookmarkListener;
- public void onAttach(Context context) {
+ public void onAttach(@NonNull Context context) {
// Run the default commands.
super.onAttach(context);
- // Get a handle for `CreateBookmarkListener` from the launching context.
+ // Get a handle for the create bookmark listener from the launching context.
createBookmarkListener = (CreateBookmarkListener) context;
}