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-v24 | |
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-v24')
-rw-r--r-- | app/src/main/res/values-v24/styles.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/src/main/res/values-v24/styles.xml b/app/src/main/res/values-v24/styles.xml new file mode 100644 index 000000000..c5b05ae21 --- /dev/null +++ b/app/src/main/res/values-v24/styles.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <!-- https://github.com/stefan-niedermann/nextcloud-deck/issues/444 --> + <style name="NavigationView"> + <item name="android:ellipsize">middle</item> + <item name="android:listDivider">@null</item> + </style> +</resources>
\ No newline at end of file |