From ba4feeea87a30794eefb6cd9f38d2724a996776b Mon Sep 17 00:00:00 2001 From: Amine Date: Wed, 16 Aug 2017 22:14:58 +0200 Subject: [PATCH] Trying to fix pre-lolipop svg drawable loading. --- CHANGELOG.md | 4 ++++ .../java/apps/amine/bou/readerforselfoss/IntroActivity.kt | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 64eb0dc..ea10207 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +**1.5.2.06** + +- Fix problem introduced in 1.5.2.04. SVG file not working on older versions of android. + **1.5.2.05** - Versions updates diff --git a/app/src/main/java/apps/amine/bou/readerforselfoss/IntroActivity.kt b/app/src/main/java/apps/amine/bou/readerforselfoss/IntroActivity.kt index 3b58609..641abb4 100644 --- a/app/src/main/java/apps/amine/bou/readerforselfoss/IntroActivity.kt +++ b/app/src/main/java/apps/amine/bou/readerforselfoss/IntroActivity.kt @@ -9,7 +9,7 @@ import android.view.View import agency.tango.materialintroscreen.MaterialIntroActivity import agency.tango.materialintroscreen.MessageButtonBehaviour import agency.tango.materialintroscreen.SlideFragmentBuilder - +import android.support.v7.app.AppCompatDelegate class IntroActivity : MaterialIntroActivity() { @@ -17,6 +17,8 @@ class IntroActivity : MaterialIntroActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) + AppCompatDelegate.setCompatVectorFromResourcesEnabled(true); + addSlide(SlideFragmentBuilder() .backgroundColor(R.color.colorPrimary) .buttonsColor(R.color.colorAccent)