@Override public void onFileClicked(File file) { if (file.isDirectory()) { Bundle bundle = new Bundle(); bundle.putString("path", file.getAbsolutePath()); InternalFragment internalFragment = new InternalFragment(); internalFragment.setArguments(bundle); getChildFragmentManager().beginTransaction().replace(R.id.fragment_container, internalFragment).addToBackStack(null).commit(); }else{ try { FileOpener.openFile(getContext(), file); } catch (IOException e) { e.printStackTrace(); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)