97
97
import de .robv .android .xposed .XSharedPreferences ;
98
98
import de .robv .android .xposed .XposedBridge ;
99
99
import de .robv .android .xposed .XposedHelpers ;
100
+ import lombok .Getter ;
101
+ import lombok .Setter ;
100
102
101
103
public class FeatureLoader {
102
104
public static Application mApp ;
@@ -142,12 +144,11 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
142
144
if (!isSupported ) {
143
145
disableExpirationVersion (mApp .getClassLoader ());
144
146
if (!pref .getBoolean ("bypass_version_check" , false )) {
145
- StringBuilder sb = new StringBuilder ()
146
- .append ("Unsupported version: " )
147
- .append (packageInfo .versionName )
148
- .append ("\n " )
149
- .append ("Only the function of ignoring the expiration of the WhatsApp version has been applied!" );
150
- throw new Exception (sb .toString ());
147
+ String sb = "Unsupported version: " +
148
+ packageInfo .versionName +
149
+ "\n " +
150
+ "Only the function of ignoring the expiration of the WhatsApp version has been applied!" ;
151
+ throw new Exception (sb );
151
152
}
152
153
}
153
154
SharedPreferencesWrapper .hookInit (mApp .getClassLoader ());
@@ -307,7 +308,6 @@ private static void plugins(@NonNull ClassLoader loader, @NonNull XSharedPrefere
307
308
BubbleColors .class ,
308
309
CallPrivacy .class ,
309
310
ActivityController .class ,
310
- // CustomTheme.class,
311
311
CustomThemeV2 .class ,
312
312
ChatLimit .class ,
313
313
SeparateGroup .class ,
@@ -385,6 +385,8 @@ private static void plugins(@NonNull ClassLoader loader, @NonNull XSharedPrefere
385
385
}
386
386
}
387
387
388
+ @ Getter
389
+ @ Setter
388
390
private static class ErrorItem {
389
391
private String pluginName ;
390
392
private String whatsAppVersion ;
@@ -402,44 +404,5 @@ public String toString() {
402
404
"\n error='" + getError () + '\'' ;
403
405
}
404
406
405
- public String getWhatsAppVersion () {
406
- return whatsAppVersion ;
407
- }
408
-
409
- public void setWhatsAppVersion (String whatsAppVersion ) {
410
- this .whatsAppVersion = whatsAppVersion ;
411
- }
412
-
413
- public String getError () {
414
- return error ;
415
- }
416
-
417
- public void setError (String error ) {
418
- this .error = error ;
419
- }
420
-
421
- public String getPluginName () {
422
- return pluginName ;
423
- }
424
-
425
- public void setPluginName (String pluginName ) {
426
- this .pluginName = pluginName ;
427
- }
428
-
429
- public String getModuleVersion () {
430
- return moduleVersion ;
431
- }
432
-
433
- public void setModuleVersion (String moduleVersion ) {
434
- this .moduleVersion = moduleVersion ;
435
- }
436
-
437
- public String getMessage () {
438
- return message ;
439
- }
440
-
441
- public void setMessage (String message ) {
442
- this .message = message ;
443
- }
444
407
}
445
408
}
0 commit comments