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:
@@ -1073,6 +1073,12 @@ public class UiUtils {
|
|||||||
|
|
||||||
public static void enablePopupMenuIcons(Context context, PopupMenu menu) {
|
public static void enablePopupMenuIcons(Context context, PopupMenu menu) {
|
||||||
Menu m = menu.getMenu();
|
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) {
|
if (Build.VERSION.SDK_INT >= 29) {
|
||||||
menu.setForceShowIcon(true);
|
menu.setForceShowIcon(true);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user