fix(icon): createRipple → createRippleDrawable 修复图标网格渲染崩溃

日志显示:Cannot find function createRipple in object [object Object]
原因:ui 对象上只有 createRippleDrawable,没有 createRipple。
修复:使用 self.ui.createRippleDrawable(card, pressed, radius) 替代。
This commit is contained in:
Hermes
2026-04-20 18:13:03 +08:00
parent 7c350724f6
commit f1b8f0a921

View File

@@ -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)));