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:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user