Skip to content

Commit

Permalink
chore: no toasts
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonLeeeaf committed Jun 8, 2024
1 parent 7a52965 commit 9543727
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 30 deletions.
39 changes: 12 additions & 27 deletions .androidide/editor/openedFiles.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,44 +4,29 @@
"file": "/storage/emulated/0/铃芽の文件/Projects/FuckMaoNemo/app/src/main/res/xml/config.xml",
"selection": {
"end": {
"column": 7,
"index": 1062,
"line": 30
"column": 102,
"index": 683,
"line": 19
},
"start": {
"column": 7,
"index": 1062,
"line": 30
"column": 102,
"index": 683,
"line": 19
}
}
},
{
"file": "/storage/emulated/0/铃芽の文件/Projects/FuckMaoNemo/app/src/main/java/io/github/moonleeeaf/fuckmaonemo/Hook.java",
"selection": {
"end": {
"column": 39,
"index": 3614,
"line": 83
"column": 31,
"index": 3660,
"line": 84
},
"start": {
"column": 39,
"index": 3614,
"line": 83
}
}
},
{
"file": "/storage/emulated/0/铃芽の文件/Projects/FuckMaoNemo/app/build.gradle",
"selection": {
"end": {
"column": 23,
"index": 273,
"line": 14
},
"start": {
"column": 23,
"index": 273,
"line": 14
"column": 31,
"index": 3660,
"line": 84
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/java/io/github/moonleeeaf/fuckmaonemo/Hook.java
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ protected void beforeHookedMethod(MethodHookParam mP) throws Throwable {
XposedHelpers.setIntField(rawRes, "code", 200);
XposedBridge.log("[FuckMaoNemo] 拦截响应 " + code + " 码");
String t = "响应码 " + code;
if (code != 401)
Toast.makeText(getApplication(), "[FuckMaoNemo] " + t, Toast.LENGTH_SHORT).show();
// Toast.makeText(getApplication(), "[FuckMaoNemo] " + t, Toast.LENGTH_SHORT).show();
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/xml/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<SwitchPreference
android:key="fuck_40x"
android:title="阻止服务端响应 40x 码"
android:summary="启用此开关后,将可以:\n拦截 401 码强制登出账号\n强制浏览已封禁账号的资料卡\n评论接口检测\n其他作用" />
android:summary="启用此开关后,将可以:\n拦截 401 码强制登出账号\n强制浏览已封禁账号的资料卡\n评论接口检测\n其他作用\n现在不再弹出 Toast 提示" />

<SwitchPreference
android:key="no_records"
Expand Down

0 comments on commit 9543727

Please sign in to comment.