Merge pull request #782 from FineFindus/fix/invisible-menu

fix: disable group divider in ProfileFragment on EMUI
This commit is contained in:
Gregory K 2024-02-25 18:57:37 +03:00 committed by GitHub
commit 963b80cce9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -635,7 +635,7 @@ public class ProfileFragment extends LoaderFragment implements OnBackPressedList
menu.findItem(R.id.block_domain).setVisible(false); menu.findItem(R.id.block_domain).setVisible(false);
menu.findItem(R.id.add_to_list).setVisible(relationship.following); 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); menu.setGroupDividerEnabled(true);
} }
} }