From 2a910fe5044c6cc1bdb649f964081b5afb6f6a38 Mon Sep 17 00:00:00 2001 From: pppscn <35696959@qq.com> Date: Thu, 21 Nov 2024 09:44:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=EF=BC=9A=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E8=87=AA=E5=AE=9A=E4=B9=89=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E5=8F=AF=E7=94=A8=E5=8F=98=E9=87=8F=E6=A0=87=E7=AD=BE=E6=8F=92?= =?UTF-8?q?=E5=85=A5=E6=8C=89=E9=92=AE=20#559?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../idormy/sms/forwarder/utils/CommonUtils.kt | 2 +- app/src/main/res/drawable/rounded_button.xml | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 app/src/main/res/drawable/rounded_button.xml diff --git a/app/src/main/java/com/idormy/sms/forwarder/utils/CommonUtils.kt b/app/src/main/java/com/idormy/sms/forwarder/utils/CommonUtils.kt index 052a5612..b5f1c103 100644 --- a/app/src/main/java/com/idormy/sms/forwarder/utils/CommonUtils.kt +++ b/app/src/main/java/com/idormy/sms/forwarder/utils/CommonUtils.kt @@ -382,7 +382,7 @@ class CommonUtils private constructor() { // 遍历所有按钮数据,过滤掉需要排除的按钮 allButtons.forEach { (tag, lable) -> if (excludeSet.isNotEmpty() && excludeSet.contains(tag)) { - allButtons.remove(tag) + return@forEach } val button = TextView(context).apply { diff --git a/app/src/main/res/drawable/rounded_button.xml b/app/src/main/res/drawable/rounded_button.xml new file mode 100644 index 00000000..1d4adc60 --- /dev/null +++ b/app/src/main/res/drawable/rounded_button.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + +