Skip to content

Commit

Permalink
Merge pull request #377 from FineFindus/feat/post-menu
Browse files Browse the repository at this point in the history
fix(compose): disable group divider on EMUI
  • Loading branch information
LucasGGamerM authored Apr 17, 2024
2 parents de57ceb + bf36f12 commit 849172a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,7 @@ private void buildVisibilityPopup(View v){
}
}
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){
Expand Down

0 comments on commit 849172a

Please sign in to comment.