diff --git a/ImageLibrary/src/main/java/com/renyu/imagelibrary/camera/CameraFragment.java b/ImageLibrary/src/main/java/com/renyu/imagelibrary/camera/CameraFragment.java index 1cfd43c..d2ad263 100644 --- a/ImageLibrary/src/main/java/com/renyu/imagelibrary/camera/CameraFragment.java +++ b/ImageLibrary/src/main/java/com/renyu/imagelibrary/camera/CameraFragment.java @@ -88,7 +88,7 @@ public void loadData() { public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { FileUtils.createOrExistsDir(InitParams.IMAGE_PATH); dirPath=InitParams.IMAGE_PATH+"/"+System.currentTimeMillis()+".jpg"; - FileUtils.createFileByDeleteOldFile(dirPath); + FileUtils.createFileByDeleteOldFile(new File(dirPath)); return super.onCreateView(inflater, container, savedInstanceState); }