Skip to content

Commit

Permalink
Update version, changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
billthefarmer committed Nov 28, 2021
1 parent 08630fd commit d8e3259
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ android {
applicationId "org.billthefarmer.editor"
minSdkVersion 14
targetSdkVersion 28
versionName "1.67"
versionCode 167
versionName "1.68"
versionCode 168

buildConfigField "long", "BUILT", System.currentTimeMillis() + "L"
}
Expand Down
1 change: 1 addition & 0 deletions fastlane/metadata/android/en-GB/changelogs/168.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Fix ellipsize open recent menu
4 changes: 3 additions & 1 deletion src/main/java/org/billthefarmer/editor/Editor.java
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ public class Editor extends Activity
private final static double KEYBOARD_RATIO = 0.25;

private final static int LAST_SIZE = 256;
private final static int MENU_SIZE = 192;
private final static int FIRST_SIZE = 256;
private final static int TOO_LARGE = 524288;
private final static int FOLDER_OFFSET = 0x7d000000;
Expand Down Expand Up @@ -977,7 +978,8 @@ public boolean onPrepareOptionsMenu(Menu menu)
.getPath() + File.separator, "");
// Create item
sub.add(Menu.NONE, R.id.fileItem, Menu.NONE, TextUtils.ellipsize
(name, new TextPaint(), 192, TextUtils.TruncateAt.MIDDLE))
(name, new TextPaint(), MENU_SIZE,
TextUtils.TruncateAt.MIDDLE))
// Use condensed title to save path as API doesn't
// work as documented
.setTitleCondensed(name);
Expand Down

0 comments on commit d8e3259

Please sign in to comment.