Fix vector drawables on api 19

This commit is contained in:
Alexey Kulish 2017-07-09 17:48:51 +03:00
parent b15139b9d9
commit 28e6b02c09

View file

@ -18,6 +18,7 @@ import android.preference.PreferenceManager;
import android.support.multidex.MultiDex;
import android.support.multidex.MultiDexApplication;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatDelegate;
import android.text.format.DateFormat;
import android.view.View;
import android.view.accessibility.AccessibilityManager;
@ -139,6 +140,9 @@ public class OsmandApplication extends MultiDexApplication {
}
}
super.onCreate();
if (android.os.Build.VERSION.SDK_INT < 21) {
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
}
createInUiThread();
uiHandler = new Handler();
appCustomization = new OsmAndAppCustomization();