@OnClick(R.id.play_video_btn) public void playVideo() { if (projectDetails == null) { ViewUtils.showToast("Getting project details failed. Retrying"); postProjectDetails(); } else { VideoActivity.showActivity(this, projectDetails); } }
@Subscribe public void onClickFile(FileExplorerEvents.OnClickFile event) { File f = event.mFile; try { f = f.getAbsoluteFile(); f = f.getCanonicalFile(); if (TextUtils.isEmpty(f.toString())) f = new File("/"); } catch (IOException e) { e.printStackTrace(); } if (f.isDirectory()) { String path = f.toString(); mSettings.setLastDirectory(path); doOpenDirectory(path, true); } else if (f.exists()) { VideoActivity.intentTo(this, f.getPath(), f.getName()); } }