Trying to fix pre-lolipop svg drawable loading.

This commit is contained in:
Amine 2017-08-16 22:14:58 +02:00
parent 6f52eae3c6
commit ba4feeea87
2 changed files with 7 additions and 1 deletions

View File

@ -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** **1.5.2.05**
- Versions updates - Versions updates

View File

@ -9,7 +9,7 @@ import android.view.View
import agency.tango.materialintroscreen.MaterialIntroActivity import agency.tango.materialintroscreen.MaterialIntroActivity
import agency.tango.materialintroscreen.MessageButtonBehaviour import agency.tango.materialintroscreen.MessageButtonBehaviour
import agency.tango.materialintroscreen.SlideFragmentBuilder import agency.tango.materialintroscreen.SlideFragmentBuilder
import android.support.v7.app.AppCompatDelegate
class IntroActivity : MaterialIntroActivity() { class IntroActivity : MaterialIntroActivity() {
@ -17,6 +17,8 @@ class IntroActivity : MaterialIntroActivity() {
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
addSlide(SlideFragmentBuilder() addSlide(SlideFragmentBuilder()
.backgroundColor(R.color.colorPrimary) .backgroundColor(R.color.colorPrimary)
.buttonsColor(R.color.colorAccent) .buttonsColor(R.color.colorAccent)