From bd41807f3b5dde3d992e3e00d59e80787c3b985c Mon Sep 17 00:00:00 2001 From: FineFindus Date: Sun, 25 Feb 2024 16:25:42 +0100 Subject: [PATCH] fix: disable group divider on EMUI --- .../org/joinmastodon/android/fragments/ProfileFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java index fb6bf864..3d68461d 100644 --- a/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java +++ b/mastodon/src/main/java/org/joinmastodon/android/fragments/ProfileFragment.java @@ -635,7 +635,7 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList menu.findItem(R.id.block_domain).setVisible(false); menu.findItem(R.id.add_to_list).setVisible(relationship.following); - if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.P){ + if(Build.VERSION.SDK_INT>=Build.VERSION_CODES.P && !UiUtils.isEMUI()){ menu.setGroupDividerEnabled(true); } }