androidx fix for calligraphy at android 10
This commit is contained in:
@@ -8,7 +8,10 @@ import com.onesignal.OneSignal;
|
||||
import com.squareup.picasso.Picasso;
|
||||
|
||||
import io.fabric.sdk.android.Fabric;
|
||||
import uk.co.chrisjenx.calligraphy.CalligraphyConfig;
|
||||
import io.github.inflationx.calligraphy3.CalligraphyConfig;
|
||||
import io.github.inflationx.calligraphy3.CalligraphyInterceptor;
|
||||
import io.github.inflationx.calligraphy3.CalligraphyUtils;
|
||||
import io.github.inflationx.viewpump.ViewPump;
|
||||
|
||||
/**
|
||||
* Created by cimenmus on 11/09/2017.
|
||||
@@ -26,11 +29,13 @@ public class App extends MultiDexApplication {
|
||||
}
|
||||
|
||||
private void initCalligraphy(){
|
||||
CalligraphyConfig.initDefault(new CalligraphyConfig.Builder()
|
||||
.setDefaultFontPath("fonts/Quicksand-Regular.ttf")
|
||||
.setFontAttrId(R.attr.fontPath)
|
||||
.build()
|
||||
);
|
||||
ViewPump.init(ViewPump.builder()
|
||||
.addInterceptor(new CalligraphyInterceptor(
|
||||
new CalligraphyConfig.Builder()
|
||||
.setDefaultFontPath("fonts/Quicksand-Regular.ttf")
|
||||
.setFontAttrId(R.attr.fontPath)
|
||||
.build()))
|
||||
.build());
|
||||
}
|
||||
|
||||
private void initPicasso(){
|
||||
|
||||
Reference in New Issue
Block a user