Skip to content

Commit

Permalink
修复获取userId失败导致闪退的问题,调整首页图标GitHub自动大写
Browse files Browse the repository at this point in the history
  • Loading branch information
constanline committed Aug 21, 2023
1 parent 2f85b29 commit 5040b4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public static String getUserId(ClassLoader classLoader) {
classLoader).getName()), "getMyAccountInfoModelByLocal");
return (String) XposedHelpers.getObjectField(callMethod, "userId");
} catch (Throwable th) {
Log.i(TAG, "getUserId err:" + Objects.requireNonNull(th.getCause()).getMessage());
Log.i(TAG, "getUserId err");
Log.printStackTrace(TAG, th);
}
return null;
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@

<Button
android:id="@+id/btn_friend_watch"
android:textAllCaps="false"
style="@android:style/Widget.DeviceDefault.Button.Borderless"
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand All @@ -128,6 +129,7 @@

<Button
android:id="@+id/btn_github"
android:textAllCaps="false"
style="@android:style/Widget.DeviceDefault.Button.Borderless"
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand All @@ -148,6 +150,7 @@

<Button
android:id="@+id/btn_settings"
android:textAllCaps="false"
style="@android:style/Widget.DeviceDefault.Button.Borderless"
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand Down

0 comments on commit 5040b4a

Please sign in to comment.