Skip to content

Commit e1d8631

Browse files
committed
Fix bug in WhatsApp Beta 2.24.25.12
Signed-off-by: Dev4Mod <[email protected]>
1 parent fa80e66 commit e1d8631

File tree

1 file changed

+4
-2
lines changed
  • app/src/main/java/com/wmods/wppenhacer/xposed/features/customization

1 file changed

+4
-2
lines changed

app/src/main/java/com/wmods/wppenhacer/xposed/features/customization/ShowOnline.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ public void doHook() throws Throwable {
5353
protected void afterHookedMethod(MethodHookParam param) throws Throwable {
5454
var view = (View) param.args[1];
5555
var context = (Context) param.args[0];
56-
var content = (LinearLayout) view.findViewById(Utils.getID("conversations_row_content", "id"));
57-
56+
LinearLayout content = view.findViewById(Utils.getID("conversations_row_content", "id"));
57+
if (content == null) {
58+
content = view.findViewById(Utils.getID("row_content", "id"));
59+
}
5860
if (showOnlineText) {
5961
var linearLayout = new LinearLayout(context);
6062
linearLayout.setGravity(Gravity.END | Gravity.TOP);

0 commit comments

Comments
 (0)