|
|
|
@ -75,7 +75,13 @@ public class FileAdapter extends RecyclerView.Adapter<FileAdapter.ViewHolder> {
|
|
|
|
|
}else{
|
|
|
|
|
//Toast.makeText(v.getContext(),fitem.getName()+" "+fitem.isCompress(),Toast.LENGTH_SHORT).show();
|
|
|
|
|
String srcFile = builder.toString();
|
|
|
|
|
String desPath = srcFile.substring(0,builder.toString().lastIndexOf("."));
|
|
|
|
|
String desPath;
|
|
|
|
|
int lastIndex = builder.toString().lastIndexOf(".");
|
|
|
|
|
if(lastIndex == -1){
|
|
|
|
|
desPath = srcFile;
|
|
|
|
|
}else {
|
|
|
|
|
desPath = srcFile.substring(0,lastIndex);
|
|
|
|
|
}
|
|
|
|
|
if (fitem.isCompress()){
|
|
|
|
|
if(FileUtils.isValidZipFile(srcFile)){
|
|
|
|
|
UnzipDialogFragment unzipDialog = new UnzipDialogFragment();
|
|
|
|
|