Skip to content

Commit c1d071f

Browse files
committed
fix: 修复两个bug
1 parent d4af21c commit c1d071f

7 files changed

Lines changed: 14 additions & 16 deletions

File tree

app/mixin/source.apk

43.7 KB
Binary file not shown.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package android.view;
2+
3+
public interface View$OnLongClickListener {
4+
}

app/src/main/java/momoi/mod/qqpro/MsgUtil.kt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,9 @@ import com.tencent.qqnt.kernel.nativeinterface.TextElement
77
import com.tencent.qqnt.msg.api.impl.MsgServiceImpl
88
import com.tencent.qqnt.msg.api.impl.MsgUtilApiImpl
99
import com.tencent.watch.aio_impl.ext.MsgListUtilKt
10-
import momoi.mod.qqpro.enum.ElementType
11-
import momoi.mod.qqpro.enum.NTMsgType
10+
import momoi.mod.qqpro.enums.ElementType
1211
import momoi.mod.qqpro.hook.view.MyDialogFragment
1312
import momoi.mod.qqpro.util.Json
14-
import momoi.mod.qqpro.util.Utils
15-
import java.util.UUID
1613
import kotlin.random.Random
1714

1815
object MsgUtil {

app/src/main/java/momoi/mod/qqpro/enum/ChatType.kt renamed to app/src/main/java/momoi/mod/qqpro/enums/ChatType.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package momoi.mod.qqpro.enum
1+
package momoi.mod.qqpro.enums
22

33
object ChatType {
44
const val PRIVATE = 1

app/src/main/java/momoi/mod/qqpro/enum/ElementType.kt renamed to app/src/main/java/momoi/mod/qqpro/enums/ElementType.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package momoi.mod.qqpro.enum
1+
package momoi.mod.qqpro.enums
22

33
object ElementType {
44
const val UNKNOWN = 0

app/src/main/java/momoi/mod/qqpro/enum/NTMsgType.kt renamed to app/src/main/java/momoi/mod/qqpro/enums/NTMsgType.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package momoi.mod.qqpro.enum
1+
package momoi.mod.qqpro.enums
22

33
object NTMsgType {
44
const val UNKNOWN = 0

app/src/main/java/momoi/mod/qqpro/hook/aio_cell/AIOCell.kt

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ import androidx.lifecycle.Lifecycle
88
import androidx.lifecycle.LifecycleOwner
99
import com.tencent.watch.aio_impl.data.WatchAIOMsgItem
1010
import com.tencent.watch.aio_impl.ui.cell.base.BaseWatchItemCell
11+
import com.tencent.watch.aio_impl.ui.cell.superface.WatchAniStickerGroupWidget
1112
import com.tencent.watch.aio_impl.ui.widget.AIOCellGroupWidget
1213
import momoi.anno.mixin.Mixin
13-
import momoi.mod.qqpro.enum.NTMsgType
14+
import momoi.mod.qqpro.enums.NTMsgType
1415
import momoi.mod.qqpro.hook.action.CurrentContact
1516
import momoi.mod.qqpro.lib.create
1617
import momoi.mod.qqpro.warp
@@ -84,7 +85,7 @@ object AIOCell {
8485
}.get()!!
8586
}
8687
fun recover(widget: AIOCellGroupWidget) {
87-
views.get(widget)?.get()?.let {
88+
views[widget]?.get()?.let {
8889
it.visibility = View.GONE
8990
if (!appendMode) {
9091
widget.contentWidget.visibility = View.VISIBLE
@@ -95,13 +96,6 @@ object AIOCell {
9596

9697
@Mixin
9798
abstract class HookCell : BaseWatchItemCell<WatchAIOMsgItem, View>() {
98-
override fun reply_item(
99-
p0: View?,
100-
p1: WatchAIOMsgItem,
101-
p2: Int,
102-
p3: List<Any>
103-
) {}
104-
10599
override fun i(
106100
view: View,
107101
item: WatchAIOMsgItem,
@@ -112,6 +106,9 @@ object AIOCell {
112106
) {
113107
super.i(view, item, p3, p4, p5, p6)
114108
val widget = view as? AIOCellGroupWidget ?: return
109+
if (widget is WatchAniStickerGroupWidget) {
110+
return
111+
}
115112
hooks.forEach {
116113
if (item.d.msgType == it.type) {
117114
val view = it.getOrCreate(widget)

0 commit comments

Comments
 (0)