Skip to content

Commit

Permalink
Reset repeat; fix size sort with pad
Browse files Browse the repository at this point in the history
  • Loading branch information
harshad1 committed Feb 3, 2024
1 parent 1ef90be commit 849357a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ public boolean onTouch(final View v, final MotionEvent event) {

final int action = event.getAction();
if (action == MotionEvent.ACTION_DOWN) {
delay = initialDelay;
onClick(v);
return true;
} else if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_CANCEL) {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/net/gsantner/opoc/util/GsFileUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ private static String makeSortKey(final String sortBy, final File file) {
return file.lastModified() + name;
}
case SORT_BY_FILESIZE: {
return file.length() + name;
return String.format("%015d", file.length()) + name;
}
case SORT_BY_MIMETYPE: {
return getMimeType(file).toLowerCase() + name;
Expand Down

0 comments on commit 849357a

Please sign in to comment.