Skip to content

Commit

Permalink
0.4.1:fix repeat pic
Browse files Browse the repository at this point in the history
  • Loading branch information
cinit committed Nov 10, 2019
1 parent d7dffd2 commit 404be9a
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 46 deletions.
68 changes: 34 additions & 34 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="nil.nadph.qnotified"
android:versionName="0.4.0"
android:versionCode="15">
xmlns:tools="http://schemas.android.com/tools"
package="nil.nadph.qnotified"
android:versionName="0.4.1"
android:versionCode="16">

<uses-sdk
android:targetSdkVersion="27"
android:minSdkVersion="14"/>
<uses-sdk
android:targetSdkVersion="27"
android:minSdkVersion="14"/>

<application
android:allowBackup="true"
android:icon="@drawable/ic_del_friend_top"
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:resizeableActivity = "true"
tools:ignore="GoogleAppIndexingWarning,UnusedAttribute">
<activity
android:name=".ConfigActivity"
android:label="@string/app_name" >
<intent-filter>
<action
android:name="android.intent.action.MAIN" />
<category
android:name="de.robv.android.xposed.category.MODULE_SETTINGS" />
</intent-filter>
</activity>
<application
android:allowBackup="true"
android:icon="@drawable/ic_del_friend_top"
android:label="@string/app_name"
android:theme="@style/AppTheme"
android:resizeableActivity="true"
tools:ignore="GoogleAppIndexingWarning,UnusedAttribute">
<activity
android:name=".ConfigActivity"
android:label="@string/app_name">
<intent-filter>
<action
android:name="android.intent.action.MAIN"/>
<category
android:name="de.robv.android.xposed.category.MODULE_SETTINGS"/>
</intent-filter>
</activity>

<meta-data
android:name="xposedmodule"
android:value="true"/>
<meta-data
android:name="xposeddescription"
android:value= "@string/xposeddescription" />
<meta-data
android:name="xposedminversion"
android:value="51" />
<meta-data
android:name="xposedmodule"
android:value="true"/>
<meta-data
android:name="xposeddescription"
android:value="@string/xposeddescription"/>
<meta-data
android:name="xposedminversion"
android:value="51"/>

</application>
</application>

</manifest>
2 changes: 1 addition & 1 deletion app/src/main/assets/xposed_init
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nil.nadph.qnotified.HookLoader
nil.nadph.qnotified.HookEntry
27 changes: 26 additions & 1 deletion app/src/main/java/nil/nadph/qnotified/hook/RepeaterHook.java
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public void beforeHookedMethod(MethodHookParam methodHookParam) throws Throwable
XposedHelpers.findAndHookMethod(_PttItemBuilder(), "a", ChatMessage, itemHolder, View.class, BaseChatItemLayout, listener2,
new XC_MethodHook(51) {
@Override
public void afterHookedMethod(MethodHookParam param) throws Throwable {
public void afterHookedMethod(final MethodHookParam param) throws Throwable {
if (!isEnabled()) return;
View view;
ViewGroup relativeLayout = (ViewGroup) param.getResult();
Expand Down Expand Up @@ -275,6 +275,31 @@ public void afterHookedMethod(MethodHookParam param) throws Throwable {
imageView3.setVisibility(8);
imageView4.setVisibility(0);
}
View.OnClickListener r0 = new View.OnClickListener() {
@Override
public void onClick(View view) {
try {
Class[] argt = null;
Method m = null;
for (Method mi : DexKit.doFindClass(DexKit.C_FACADE).getMethods()) {
if (!mi.getName().equals("a")) continue;
argt = mi.getParameterTypes();
if (argt.length < 3) continue;
if (argt[0].equals(load("com/tencent/mobileqq/app/QQAppInterface")) && argt[1].equals(_SessionInfo())
&& argt[2].isAssignableFrom(param.args[0].getClass())) {
m = mi;
break;
}
}
if (argt.length == 3) m.invoke(null, app, session, param.args[0]);
else m.invoke(null, app, session, param.args[0], 0);
} catch (Throwable e) {
log(e);
}
}
};
imageView3.setOnClickListener(r0);
imageView4.setOnClickListener(r0);
}
});
inited = true;
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/nil/nadph/qnotified/util/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ private Utils() {

public static boolean DEBUG = true;
public static boolean V_TOAST = false;
public static final String QN_VERSION_NAME = "0.4.0";
public static final int QN_VERSION_CODE = 15;
public static final String QN_VERSION_NAME = "0.4.1";
public static final int QN_VERSION_CODE = 16;

public static final String PACKAGE_NAME_QQ = "com.tencent.mobileqq";
public static final String PACKAGE_NAME_QQ_INTERNATIONAL = "com.tencent.mobileqqi";
Expand Down
16 changes: 8 additions & 8 deletions update_info
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
[
{
"code": 15,
"name": "0.4.0",
"code": 16,
"name": "0.4.1",
"taichi": false,
"beta": false,
"time": 1573376192,
"md5": "b7073a7114f946c4cee3e38582a6352d",
"desc": "- 修复818无法隐藏小程序的bug\n- 群发文本消息\n- 添加防撤回(实验性,不稳定)",
"time": 1573400112,
"md5": "3d260aef65d8a55798662e32b5dbe451",
"desc": "0.4.1:\n- 修复图片无法复读的bug\n0.4.0:\n- 修复818无法隐藏小程序的bug\n- 群发文本消息\n- 添加防撤回(实验性,不稳定)",
"urls": [
"https://github.com/cinit/QNotified/releases/download/v0.4.0/QNotified_040.apk",
"https://pan.baidu.com/s/13tKyQsnHHfb3LQSISzgCOg",
"https://gitee.com/kernelex/QNotified/attach_files/295346/download"
"https://github.com/cinit/QNotified/releases/download/v0.4.1/QNotified_041.apk",
"https://pan.baidu.com/s/1-tnQY0kA4lBAjJHYXTRLXQ",
"https://gitee.com/kernelex/QNotified/attach_files/295506/download"
]
}
]

0 comments on commit 404be9a

Please sign in to comment.