From bf36f12f79007b3dbcac3c9045c68355958ec13d Mon Sep 17 00:00:00 2001 From: FineFindus Date: Tue, 16 Apr 2024 09:15:48 +0200 Subject: [PATCH] fix(compose): disable group divider on EMUI --- .../org/joinmastodon/android/fragments/ComposeFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java index 90dee6085..9bc2b12d3 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ComposeFragment.java @@ -1662,7 +1662,7 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr } } UiUtils.enablePopupMenuIcons(getActivity(), visibilityPopup); - if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.P) m.setGroupDividerEnabled(true); + if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.P && !UiUtils.isEMUI()) m.setGroupDividerEnabled(true); visibilityPopup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener(){ @Override public boolean onMenuItemClick(MenuItem item){