Skip to content

Commit 2b871ef

Browse files
author
ghui
committed
Fix couldn't call wechat
1 parent 1fe7e16 commit 2b871ef

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
<uses-permission android:name="android.permission.INTERNET" />
66
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
7+
<uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
78

89
<application
910
android:name=".general.App"

app/src/main/java/me/ghui/v2er/util/UserUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ private static void clearWechatProInfo() {
138138
public static boolean isGhui() {
139139
String currentUser = getUserName();
140140
if (Check.isEmpty(currentUser)) return false;
141-
return "ghui".contentEquals(currentUser);
141+
return "ghui".contentEquals(currentUser)
142+
|| "ghuiii".contentEquals(currentUser);
142143
}
143144

144145
}

0 commit comments

Comments
 (0)