Skip to content

Commit

Permalink
Code Cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
malirauf committed Jul 31, 2024
1 parent aa5eb50 commit dd33caa
Showing 1 changed file with 32 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,17 @@
import static android.os.Build.VERSION.SDK_INT;
import static android.os.Build.VERSION_CODES.Q;

import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.database.Cursor;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.provider.MediaStore;
import android.text.format.Formatter;
import android.widget.Toast;
import java.io.File;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AlertDialog;
import androidx.core.util.Pair;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.amaze.filemanager.R;
import com.amaze.filemanager.adapters.data.LayoutElementParcelable;
Expand Down Expand Up @@ -71,17 +65,23 @@
import com.amaze.trashbin.TrashBinFile;
import com.cloudrail.si.interfaces.CloudStorage;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import android.content.ContentResolver;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.database.Cursor;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.provider.MediaStore;
import android.text.format.Formatter;
import android.widget.Toast;

import java.io.File;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.Date;
import java.util.LinkedList;
import java.util.List;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AlertDialog;
import androidx.core.util.Pair;

import jcifs.smb.SmbAuthException;
import jcifs.smb.SmbException;
Expand Down Expand Up @@ -613,12 +613,12 @@ else if (cursor.getCount() > 0 && cursor.moveToFirst()) {

for (TrashBinFile trashBinFile : filesInBin) {
HybridFile hybridFile =
new HybridFile(
OpenMode.TRASH_BIN,
trashBinFile.getDeletedPath(
AppConfig.getInstance().getTrashBinInstance().getConfig()),
trashBinFile.getFileName(),
trashBinFile.isDirectory());
new HybridFile(
OpenMode.TRASH_BIN,
trashBinFile.getDeletedPath(
AppConfig.getInstance().getTrashBinInstance().getConfig()),
trashBinFile.getFileName(),
trashBinFile.isDirectory());
if (trashBinFile.getDeleteTime() != null) {
hybridFile.setLastModified(trashBinFile.getDeleteTime() * 1000);
}
Expand Down

0 comments on commit dd33caa

Please sign in to comment.