Browse Source

修改拍照图片格式

songw 2 tháng trước cách đây
mục cha
commit
02912a768f

+ 1 - 1
app/src/main/java/com/uas/hystorage/view/Pick/PictureSelectorFragment.java

@@ -91,7 +91,7 @@ public abstract class PictureSelectorFragment extends BaseFragment implements Pi
     @Override
     public void onStart() {
         super.onStart();
-        mDestination = Uri.fromFile(new File(getContext().getCacheDir(), "cropImage_" + System.currentTimeMillis() + ".jpeg"));
+        mDestination = Uri.fromFile(new File(getContext().getCacheDir(), "cropImage_" + System.currentTimeMillis() + ".png"));
 
         File downloadDir = null;
         if (Build.VERSION.SDK_INT >= 29) {