From 8c1190a5a39a7762b82f1ae8f9a3ac46a47d0320 Mon Sep 17 00:00:00 2001 From: pacien Date: Sat, 14 Oct 2017 13:45:22 +0200 Subject: Use multi-dex support lib for old Android versions --- app/src/main/java/org/pacien/tincapp/context/App.kt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/src/main/java') diff --git a/app/src/main/java/org/pacien/tincapp/context/App.kt b/app/src/main/java/org/pacien/tincapp/context/App.kt index 7aaa3d0..88e1b32 100644 --- a/app/src/main/java/org/pacien/tincapp/context/App.kt +++ b/app/src/main/java/org/pacien/tincapp/context/App.kt @@ -5,6 +5,7 @@ import android.content.Context import android.content.Intent import android.net.Uri import android.support.annotation.StringRes +import android.support.multidex.MultiDex import android.support.v7.app.AlertDialog import android.view.WindowManager import org.pacien.tincapp.R @@ -19,6 +20,11 @@ class App : Application() { appContext = applicationContext } + override fun attachBaseContext(base: Context) { + super.attachBaseContext(base) + MultiDex.install(this) + } + companion object { private var appContext: Context? = null -- cgit v1.2.3