Skip to content

Commit e4aafe8

Browse files
authored
Merge pull request #121 from Arctosoft/develop
v2.2.2
2 parents 6083280 + 3fcb27c commit e4aafe8

File tree

8 files changed

+25
-11
lines changed

8 files changed

+25
-11
lines changed

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ android {
1111
applicationId = "se.arctosoft.vault"
1212
minSdk = 28
1313
targetSdk = 35
14-
versionCode = 36
15-
versionName = "2.2.1"
14+
versionCode = 37
15+
versionName = "2.2.2"
1616

1717
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1818
}

app/src/main/java/se/arctosoft/vault/DirectoryAllFragment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ private void findAllFiles() {
130130
long start = System.currentTimeMillis();
131131
List<GalleryFile> filesToSearch = new ArrayList<>();
132132
for (Uri uri : uriFiles) {
133-
List<GalleryFile> filesInFolder = FileStuff.getFilesInFolder(activity, uri);
133+
List<GalleryFile> filesInFolder = FileStuff.getFilesInFolder(activity, uri, true);
134134
for (GalleryFile foundFile : filesInFolder) {
135135
if (foundFile.isDirectory()) {
136136
Log.e(TAG, "findAllFiles: found " + foundFile.getNameWithPath());
@@ -236,7 +236,7 @@ private List<GalleryFile> findAllFilesInFolder(Uri uri) {
236236
return files;
237237
}
238238
incrementFolders(1);
239-
List<GalleryFile> filesInFolder = FileStuff.getFilesInFolder(activity, uri);
239+
List<GalleryFile> filesInFolder = FileStuff.getFilesInFolder(activity, uri, true);
240240
for (GalleryFile galleryFile : filesInFolder) {
241241
if (!isSafe()) {
242242
return files;

app/src/main/java/se/arctosoft/vault/DirectoryBaseFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ void findFilesIn(Uri directoryUri) {
325325
Log.e(TAG, "findFilesIn: not safe, return");
326326
return;
327327
}
328-
List<GalleryFile> galleryFiles = FileStuff.getFilesInFolder(activity, directoryUri);
328+
List<GalleryFile> galleryFiles = FileStuff.getFilesInFolder(activity, directoryUri, true);
329329

330330
activity.runOnUiThread(() -> {
331331
setLoading(false);

app/src/main/java/se/arctosoft/vault/data/GalleryFile.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ public void findFilesInDirectory(Context context, IOnDone onDone) {
307307
return;
308308
}
309309
new Thread(() -> {
310-
List<GalleryFile> galleryFiles = FileStuff.getFilesInFolder(context, fileUri);
310+
List<GalleryFile> galleryFiles = FileStuff.getFilesInFolder(context, fileUri, false);
311311
this.fileCount = 0;
312312
this.firstFileInDirectoryWithThumb = null;
313313
for (GalleryFile f : galleryFiles) {
@@ -338,11 +338,11 @@ public boolean equals(Object o) {
338338
if (this == o) return true;
339339
if (o == null || getClass() != o.getClass()) return false;
340340
GalleryFile that = (GalleryFile) o;
341-
return size == that.size && fileType == that.fileType && Objects.equals(originalName, that.originalName);
341+
return size == that.size && fileType == that.fileType && Objects.equals(encryptedName, that.encryptedName);
342342
}
343343

344344
@Override
345345
public int hashCode() {
346-
return Objects.hash(size, fileType, originalName);
346+
return Objects.hash(size, fileType, encryptedName);
347347
}
348348
}

app/src/main/java/se/arctosoft/vault/subsampling/MySubsamplingScaleImageView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1945,7 +1945,7 @@ private int getExifOrientation(Context context, String sourceUri) {
19451945
Log.w(TAG, "Could not get EXIF orientation of image");
19461946
}
19471947
}*/
1948-
return orientation;
1948+
return orientation == -1 ? ORIENTATION_0 : orientation;
19491949
}
19501950

19511951
private void execute(AsyncTask<Void, Void, ?> asyncTask) {

app/src/main/java/se/arctosoft/vault/utils/FileStuff.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class FileStuff {
5656
private static final String TAG = "FileStuff";
5757

5858
@NonNull
59-
public static List<GalleryFile> getFilesInFolder(Context context, Uri pickedDir) {
59+
public static List<GalleryFile> getFilesInFolder(Context context, Uri pickedDir, boolean checkDecryptable) {
6060
//Log.e(TAG, "getFilesInFolder: " + pickedDir);
6161
Uri realUri = DocumentsContract.buildChildDocumentsUriUsingTree(pickedDir, DocumentsContract.getDocumentId(pickedDir));
6262
List<CursorFile> files = new ArrayList<>();
@@ -86,7 +86,7 @@ public static List<GalleryFile> getFilesInFolder(Context context, Uri pickedDir)
8686
List<GalleryFile> encryptedFilesInFolder = getEncryptedFilesInFolder(files, context);
8787
Collections.sort(encryptedFilesInFolder);
8888

89-
if (Settings.getInstance(context).displayDecryptableFilesOnly()) {
89+
if (checkDecryptable && Settings.getInstance(context).displayDecryptableFilesOnly()) {
9090
long start = System.currentTimeMillis();
9191
List<GalleryFile> readableFiles = new ArrayList<>();
9292
final Queue<GalleryFile> fileQueue = new ArrayDeque<>(encryptedFilesInFolder);
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
* The folder preview and file count now update after modifying the folder contents
2+
* Added a setting to hide all files encrypted using a different password
3+
* Added a setting to go to the password screen when locking instead of exiting
4+
* Fixed duplicate files in the All folder
5+
* Fixed images being displayed in the wrong orientation
6+
* Fixed missing fast scroll bar
7+
* Fixed a crash when scrolling fast in the grid
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
* Mappförhandsgranskningen och filantalet uppdateras nu efter att mappinnehållet har ändrats
2+
* Lade till en inställning för att dölja alla filer krypterade med ett annat lösenord
3+
* Lade till en inställning för att gå till lösenordsskärmen när du låser istället för att avsluta appen
4+
* Fixade dubbletter av filer i Alla-mappen
5+
* Fixade bilder som visades i fel orientering
6+
* Fixade saknad snabbrullning
7+
* Fixade en krasch när du scrollar snabbt i rutnätet

0 commit comments

Comments
 (0)