diff options
author | Niedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com> | 2020-05-02 17:59:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-02 17:59:53 +0300 |
commit | c20ae5644585f74f73988d45a58cc3408b4f82ed (patch) | |
tree | 20a3c942c3dbbf86c9be9ce6af3152736c95c318 /app/src/main/res/values | |
parent | 8cef1aabd7dc8e6bfa5487749ac9214622755128 (diff) |
Fix crash on some devices caused by maxLines-ellipsize combination (#446)
Fixes #444 by using ellipsize="end" for account navigation items up to API Level 23 and keeps ellipsize="middle" for account navigation items for API Level 24+.
Resources: https://stackoverflow.com/a/45442154 and https://issuetracker.google.com/issues/36950033
Diffstat (limited to 'app/src/main/res/values')
-rw-r--r-- | app/src/main/res/values/styles.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index e0d5b4bb4..d6121c306 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -35,7 +35,8 @@ </style> <style name="NavigationView"> - <item name="android:ellipsize">middle</item> + <!-- https://github.com/stefan-niedermann/nextcloud-deck/issues/444 --> + <item name="android:ellipsize">end</item> <item name="android:listDivider">@null</item> </style> |