Skip to content

Crash in pre-23 caused by vector drawables #25

@xiprox

Description

@xiprox

Discovered this just now while working on another app. While I haven't tested Youkai specifically, I'm pretty sure it applies. (See)

ImageViews with srcCompat are totally fine and this issue doesn't apply to them.

The fix is fairly simple:

class App : Application() {

    init {
        AppCompatDelegate.setCompatVectorFromResourcesEnabled(true)
    }
}

The above applies to general usage. Vector drawables used as, for example, drawableLeft on TextViews or Button icons still blow things up. We don't use button icons anyway so that aside, we will need to implement a solution for TextViews (at least, when we use them) along the lines of the following: http://stackoverflow.com/a/40250753/984061

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions