Thank you for the post.
Johan Nenzén
1

Or you can use this piece of ugly hack. Since `BootstrapApplication` can’t be imported I had to look it up through its class name instead

if(BuildConfig.DEBUG) {
if (application.getClass().getName().contains("BootstrapApplication")) {
try {
Field field = application.getClass().getDeclaredField("realApplication");
field.setAccessible(true);
try {
application = (Application) field.get(application);
} catch (IllegalAccessException e) {
e.printStackTrace();
}
} catch (NoSuchFieldException e) {
e.printStackTrace();
}
}
}
One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.