fix(menu-icons): disable them for android 14 and higher devices

This is due to a shitty bug with android 14 and InsetDrawables which I couldn´t fix yet
This commit is contained in:
LucasGGamerM
2024-05-05 16:01:41 -03:00
parent 3e36a72852
commit a59c20d239

View File

@@ -1073,6 +1073,12 @@ public class UiUtils {
public static void enablePopupMenuIcons(Context context, PopupMenu menu) {
Menu m = menu.getMenu();
// MOSHIDON disable menu icons on android 14 and higher because of InsetDrawables breaking
if (Build.VERSION.SDK_INT >= 34) {
return;
}
if (Build.VERSION.SDK_INT >= 29) {
menu.setForceShowIcon(true);
} else {