Source:
<code>public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View root = super.onCreateView(inflater, container, savedInstanceState); Bundle args = getArguments(); LocalFileLocation rootPath = null; checkReadStoragePermission(); try { if (http_app == null) { http_app = HttpApp.getInstance(getContext(), 8080); } } catch (IOException ioe) { Toast.makeText(getContext(), getString(R.string.error_starting_http_server), <START> Toast.LENGTH_LONG); <END> } if (args != null) { rootPath = args.getParcelable(ROOT_PATH); this.rootPathLocation = args.getString(ROOT_PATH_LOCATION); mediaType = args.getString(MEDIA_TYPE, Files.Media.FILES); sortMethod = args.getParcelable(SORT_METHOD); } hostManager = HostManager.getInstance(getActivity()); getEmptyView().setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (!atRootDirectory()) browseSources(); } }); if (savedInstanceState != null) { mediaType = savedInstanceState.getString(MEDIA_TYPE, Files.Media.FILES); sortMethod = savedInstanceState.getParcelable(SORT_METHOD); ArrayList<LocalFileLocation> list = savedInstanceState.getParcelableArrayList(PATH_CONTENTS); rootFileLocation = savedInstanceState.getParcelableArrayList(ROOT_PATH_CONTENTS); browseRootAlready = savedInstanceState.getBoolean(ROOT_VISITED); ((MediaPictureListAdapter) getAdapter()).setFilelistItems(list); } else if (rootPath != null) { loadOnVisible = rootPath; setUserVisibleHint(getUserVisibleHint() || !args.getBoolean(DELAY_LOAD, false)); } else { browseSources(); } return root; }</code><technical_language>Android Studio points out call .show() here</technical_language>

Target:
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View root = super.onCreateView(inflater, container, savedInstanceState); Bundle args = getArguments(); LocalFileLocation rootPath = null; checkReadStoragePermission(); try { if (http_app == null) { http_app = HttpApp.getInstance(getContext(), 8080); } } catch (IOException ioe) { Toast.makeText(getContext(), getString(R.string.error_starting_http_server), Toast.LENGTH_LONG).show(); } if (args != null) { rootPath = args.getParcelable(ROOT_PATH); this.rootPathLocation = args.getString(ROOT_PATH_LOCATION); mediaType = args.getString(MEDIA_TYPE, Files.Media.FILES); sortMethod = args.getParcelable(SORT_METHOD); } hostManager = HostManager.getInstance(getActivity()); getEmptyView().setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { if (!atRootDirectory()) browseSources(); } }); if (savedInstanceState != null) { mediaType = savedInstanceState.getString(MEDIA_TYPE, Files.Media.FILES); sortMethod = savedInstanceState.getParcelable(SORT_METHOD); ArrayList<LocalFileLocation> list = savedInstanceState.getParcelableArrayList(PATH_CONTENTS); rootFileLocation = savedInstanceState.getParcelableArrayList(ROOT_PATH_CONTENTS); browseRootAlready = savedInstanceState.getBoolean(ROOT_VISITED); ((MediaPictureListAdapter) getAdapter()).setFilelistItems(list); } else if (rootPath != null) { loadOnVisible = rootPath; setUserVisibleHint(getUserVisibleHint() || !args.getBoolean(DELAY_LOAD, false)); } else { browseSources(); } return root; }