From 762a008f404eb747e8b12456cc619593fca23f18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E8=B5=9B=E8=B5=9B?= <15868191030@163.com> Date: Tue, 6 Jul 2021 14:52:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9findbugs(=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E6=97=A0=E6=95=88=E4=BB=A3=E7=A0=81)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../powermenudemo/customs/adapters/CustomDialogMenuAdapter.java | 1 - .../src/main/java/com/skydoves/powermenu/AbstractPowerMenu.java | 1 - 2 files changed, 2 deletions(-) diff --git a/entry/src/main/java/com/skydoves/powermenudemo/customs/adapters/CustomDialogMenuAdapter.java b/entry/src/main/java/com/skydoves/powermenudemo/customs/adapters/CustomDialogMenuAdapter.java index aab4f5e..2682d3d 100644 --- a/entry/src/main/java/com/skydoves/powermenudemo/customs/adapters/CustomDialogMenuAdapter.java +++ b/entry/src/main/java/com/skydoves/powermenudemo/customs/adapters/CustomDialogMenuAdapter.java @@ -44,7 +44,6 @@ public class CustomDialogMenuAdapter extends MenuBaseAdapter { NameCardMenuItem item = (NameCardMenuItem) getItem(index); final Image icon = (Image) view.findComponentById(ResourceTable.Id_item_name_card_profile); - ShapeElement shapeElement = new ShapeElement(); icon.setImageElement(item.getIcon()); final Text name = (Text) view.findComponentById(ResourceTable.Id_item_name_card_name); name.setText(item.getName()); diff --git a/powermenu/src/main/java/com/skydoves/powermenu/AbstractPowerMenu.java b/powermenu/src/main/java/com/skydoves/powermenu/AbstractPowerMenu.java index 37acba9..012ebd3 100644 --- a/powermenu/src/main/java/com/skydoves/powermenu/AbstractPowerMenu.java +++ b/powermenu/src/main/java/com/skydoves/powermenu/AbstractPowerMenu.java @@ -103,7 +103,6 @@ public abstract class AbstractPowerMenu> } // 如果自己接触到了点击,并且不在PopupContentView范围内点击,则进行判断是否是点击事件,如果是,则dismis Rect rect = new Rect(); - Rect rect2 = new Rect(); getGlobalVisibleRect(menuView, rect); if (!isInRect(getX(event), getY(event), rect)) { switch (event.getAction()) { -- Gitee