|
32 | 32 | import com.wmods.wppenhacer.xposed.utils.Utils; |
33 | 33 |
|
34 | 34 | import java.lang.reflect.Method; |
| 35 | +import java.util.Arrays; |
35 | 36 | import java.util.Objects; |
36 | 37 |
|
37 | 38 | import de.robv.android.xposed.XposedBridge; |
@@ -113,7 +114,7 @@ public View getView(int position, @Nullable View convertView, @NonNull ViewGroup |
113 | 114 | clazz = Unobfuscator.getClassByName("TextStatusComposerActivity", activity.getClassLoader()); |
114 | 115 | } catch (Exception ignored) { |
115 | 116 | clazz = Unobfuscator.getClassByName("ConsolidatedStatusComposerActivity", getContext().getClassLoader()); |
116 | | - intent.putExtra("status_composer_mode",2); |
| 117 | + intent.putExtra("status_composer_mode", 2); |
117 | 118 | } |
118 | 119 | intent.setClassName(activity.getPackageName(), clazz.getName()); |
119 | 120 | activity.startActivity(intent); |
@@ -143,7 +144,7 @@ public IGStatusAdapter(@NonNull Context context, @NonNull Class<?> statusInfoCla |
143 | 144 | super(context, 0); |
144 | 145 | this.clazzImageStatus = XposedHelpers.findClass("com.whatsapp.status.ContactStatusThumbnail", this.getContext().getClassLoader()); |
145 | 146 | this.statusInfoClazz = statusInfoClazz; |
146 | | - this.setCountStatus = ReflectionUtils.findMethodUsingFilter(this.clazzImageStatus, m -> m.getParameterCount() == 2 && m.getParameterTypes()[0].equals(int.class) && m.getParameterTypes()[1].equals(int.class)); |
| 147 | + this.setCountStatus = ReflectionUtils.findMethodUsingFilter(this.clazzImageStatus, m -> m.getParameterCount() == 3 && Arrays.equals(new Class[]{int.class, int.class, int.class}, m.getParameterTypes())); |
147 | 148 | } |
148 | 149 |
|
149 | 150 | @Override |
@@ -184,7 +185,7 @@ public void setInfo(Object item) { |
184 | 185 | public void setCountStatus(int countUnseen, int total) { |
185 | 186 | if (setCountStatus != null) { |
186 | 187 | try { |
187 | | - setCountStatus.invoke(igStatusContactPhoto, countUnseen, total); |
| 188 | + setCountStatus.invoke(igStatusContactPhoto, total, countUnseen, total); |
188 | 189 | } catch (Exception e) { |
189 | 190 | XposedBridge.log(e); |
190 | 191 | } |
|
0 commit comments