androidx fix for calligraphy at android 10

This commit is contained in:
2020-11-04 14:57:16 +03:00
parent 2a4a9b1685
commit 744f95509f
4 changed files with 15 additions and 9 deletions

View File

@@ -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(){