You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
HACK: set loglevel for Whatsapps custom log implementation
This commit is contained in:
@@ -132,6 +132,10 @@ public class Context extends Object {
|
|||||||
application.native_window = native_window;
|
application.native_window = native_window;
|
||||||
this_application = application;
|
this_application = application;
|
||||||
application.attachBaseContext(new Context());
|
application.attachBaseContext(new Context());
|
||||||
|
// HACK: Set WhatsApp's custom logging mechanism to verbose for easier debugging. Should be removed again once WhatsApp is fully supported
|
||||||
|
try {
|
||||||
|
Class.forName("com.whatsapp.util.Log").getField("level").setInt(null, 5);
|
||||||
|
} catch (Exception e) {} // ignore for other apps
|
||||||
return application;
|
return application;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user