Less space for menu icons

pull/199/head
M66B 4 years ago
parent 94512a1d39
commit 7efed124c4

@ -135,7 +135,7 @@ public class PopupMenuLifecycle extends PopupMenu implements LifecycleObserver {
ImageSpan imageSpan = new ImageSpan(icon); ImageSpan imageSpan = new ImageSpan(icon);
SpannableStringBuilder ssb = new SpannableStringBuilder(menuItem.getTitle()); SpannableStringBuilder ssb = new SpannableStringBuilder(menuItem.getTitle());
ssb.insert(0, "\uFFFC\u2003"); ssb.insert(0, "\uFFFC\u2002"); // object replacement character, en space
ssb.setSpan(imageSpan, 0, 1, 0); ssb.setSpan(imageSpan, 0, 1, 0);
menuItem.setTitle(ssb); menuItem.setTitle(ssb);
menuItem.setIcon(null); menuItem.setIcon(null);

Loading…
Cancel
Save