Skip to content

Commit

Permalink
Update version, changelog, recent list
Browse files Browse the repository at this point in the history
  • Loading branch information
billthefarmer committed Oct 10, 2023
1 parent a370231 commit c2c651b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ android {
applicationId "org.billthefarmer.editor"
minSdkVersion 14
targetSdkVersion 28
versionName "1.88"
versionCode 188
versionName "1.89"
versionCode 189

buildConfigField "long", "BUILT", System.currentTimeMillis() + "L"
}
Expand Down
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-GB/changelogs/189.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Fix recent file list
10 changes: 6 additions & 4 deletions src/main/java/org/billthefarmer/editor/Editor.java
Original file line number Diff line number Diff line change
Expand Up @@ -1460,14 +1460,12 @@ private void savePath(String path)
// Get a list of files
List<Long> list = new ArrayList<>();
Map<Long, String> map = new HashMap<>();
for (Iterator<String> iter = pathMap.keySet().iterator();
iter.hasNext();)
for (String name: pathMap.keySet())
{
String name = iter.next();
File file = new File(name);
// Add to remove list if non existant
if (!file.exists())
{
iter.remove();
removeList.add(name);
continue;
}
Expand All @@ -1476,6 +1474,10 @@ private void savePath(String path)
map.put(file.lastModified(), name);
}

// Remove non existant entries
for (String name: removeList)
pathMap.remove(name);

// Sort in reverse order
Collections.sort(list);
Collections.reverse(list);
Expand Down

0 comments on commit c2c651b

Please sign in to comment.