From f1b8f0a9212715d7bd3383376b86d913e9c467af Mon Sep 17 00:00:00 2001 From: Hermes Date: Mon, 20 Apr 2026 18:13:03 +0800 Subject: [PATCH] =?UTF-8?q?fix(icon):=20createRipple=20=E2=86=92=20createR?= =?UTF-8?q?ippleDrawable=20=E4=BF=AE=E5=A4=8D=E5=9B=BE=E6=A0=87=E7=BD=91?= =?UTF-8?q?=E6=A0=BC=E6=B8=B2=E6=9F=93=E5=B4=A9=E6=BA=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 日志显示:Cannot find function createRipple in object [object Object] 原因:ui 对象上只有 createRippleDrawable,没有 createRipple。 修复:使用 self.ui.createRippleDrawable(card, pressed, radius) 替代。 --- code/th_14_panels.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/th_14_panels.js b/code/th_14_panels.js index 250a5d7..c596849 100644 --- a/code/th_14_panels.js +++ b/code/th_14_panels.js @@ -4076,7 +4076,7 @@ FloatBallAppWM.prototype.showShortXIconPickerPopup = function(opts) { cell.setGravity(android.view.Gravity.CENTER_HORIZONTAL); cell.setPadding(self.dp(4), self.dp(6), self.dp(4), self.dp(6)); cell.setClickable(true); - cell.setBackground(self.ui.createRipple(C.primary, self.dp(10))); + cell.setBackground(self.ui.createRippleDrawable(C.card, self.withAlpha(C.primary, 0.2), self.dp(10))); var iv = new android.widget.ImageView(context); iv.setLayoutParams(new android.widget.LinearLayout.LayoutParams(self.dp(28), self.dp(28)));