forked from chrisjenx/Calligraphy
-
Notifications
You must be signed in to change notification settings - Fork 80
Open
Description
While devices running Android 8 show text in my app properly, all my views are 'empty' when using a device with Android 9.
The Layout Inspector of Android Studio does show the contents under "Text" -> "mText", but not visually in the view. No errors were triggered.
build.gradle:
implementation 'io.github.inflationx:calligraphy3:3.1.1'
implementation 'io.github.inflationx:viewpump:2.0.3'AndroidManifest.xml application:
android:name=".App"App.java:
public class App extends Application {
...
@Override
public void onCreate() {
...
ViewPump.init(ViewPump.builder()
.addInterceptor(new CalligraphyInterceptor(
new CalligraphyConfig.Builder()
.setDefaultFontPath("fonts/Rubik-Regular.ttf")
.setFontAttrId(R.attr.fontPath)
.build()))
.build());
...
}
}Activity.java:
@Override
protected void attachBaseContext(Context newBase) {
super.attachBaseContext(
ViewPumpContextWrapper.wrap(
LokaliseContextWrapper.wrap(newBase)
)
);
}And then, all my views containing texts are empty on Android 9.
Metadata
Metadata
Assignees
Labels
No labels