|
@@ -98,10 +98,18 @@ class AiKeyboardCommonPanelComponent @JvmOverloads constructor(
|
|
|
mKeyListAdapter = MultiTypeAdapter(mKeyListItems).apply {
|
|
mKeyListAdapter = MultiTypeAdapter(mKeyListItems).apply {
|
|
|
// 键盘按键条目
|
|
// 键盘按键条目
|
|
|
register(AiKeyboardKeyModel::class.java, AiKeyboardKeyViewBinder {
|
|
register(AiKeyboardKeyModel::class.java, AiKeyboardKeyViewBinder {
|
|
|
- // 正在加载中,忽略点击
|
|
|
|
|
|
|
+ // 当前点击的条目,正在加载中,忽略点击
|
|
|
if (it.isLoading) {
|
|
if (it.isLoading) {
|
|
|
return@AiKeyboardKeyViewBinder
|
|
return@AiKeyboardKeyViewBinder
|
|
|
}
|
|
}
|
|
|
|
|
+ // 其他条目正在加载中,忽略点击
|
|
|
|
|
+ val hasItemLoading =
|
|
|
|
|
+ mKeyListItems.filterIsInstance<AiKeyboardKeyModel>().filter {
|
|
|
|
|
+ it.isLoading
|
|
|
|
|
+ }.toList().isNotEmpty()
|
|
|
|
|
+ if (hasItemLoading) {
|
|
|
|
|
+ return@AiKeyboardKeyViewBinder
|
|
|
|
|
+ }
|
|
|
// 点击键盘按键,打开AI生成内容面板
|
|
// 点击键盘按键,打开AI生成内容面板
|
|
|
if (it.isVip) {
|
|
if (it.isVip) {
|
|
|
// 检查是否VIP
|
|
// 检查是否VIP
|