code: @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
  
          if (getArguments() != null) {
              images = getArguments().getStringArrayList(KEY_IMAGES);
              title = getArguments().getString(KEY_TITLE);
          }
  
      }
docs: region Lifecycle Methods