From f6b79681d446ce1370e5bb11e669a27d9c8282f5 Mon Sep 17 00:00:00 2001 From: r17171709 Date: Sat, 10 Jun 2017 16:56:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=B8=89=E6=96=B9=E5=BA=93=E5=8D=87?= =?UTF-8?q?=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/renyu/imagelibrary/camera/CameraFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }