package yi; import android.database.Cursor; import bj.d0; import com.tencent.mm.app.y0; import com.tencent.mm.chatroom.storage.GroupToolItem; import com.tencent.mm.sdk.platformtools.Log; import com.tencent.mm.storage.z1; import ej.d; import java.util.ArrayList; import jh2.u0; import nf0.e6; import yz3.e; import zz3.b; @b(onProcess = {y0.MATCH_MM}) public class j extends e implements u0 { @Override // jh2.u0 public void Pq(String str) { hj.e c15; if (z1.U5(str) && (c15 = d0.c(str)) != null && c15.field_queryState != 0) { c15.q2(new GroupToolItem("roomaa@app.origin", "", e6.a())); Log.i("MicroMsg.roomtools.RoomTodoService", "handleGroupToolByLaunchAA room:%s result:%s", str, Boolean.valueOf(((d) yz3.j.c(d.class)).YN0().update(c15, new String[0]))); } } /* JADX INFO: finally extract failed */ @Override // jh2.u0 public void lP() { ArrayList<hj.e> arrayList; Log.i("MicroMsg.roomtools.RoomToolsHelp", "resetAllGroupToolsRecentUse"); Cursor query = ((d) yz3.j.c(d.class)).YN0().f226667d.query("GroupTools", hj.e.f226662v.columns, null, null, null, null, null); if (query == null) { arrayList = null; } else { try { ArrayList arrayList2 = new ArrayList(); while (query.moveToNext()) { hj.e eVar = new hj.e(); eVar.convertFrom(query); arrayList2.add(eVar); } query.close(); arrayList = arrayList2; } catch (Throwable th5) { query.close(); throw th5; } } if (arrayList != null) { for (hj.e eVar2 : arrayList) { eVar2.field_queryState = 0; ((d) yz3.j.c(d.class)).YN0().update(eVar2, new String[0]); } } } }