package org.torproject.vpn.ui.glide

import android.content.Context
import android.graphics.drawable.Drawable
import com.bumptech.glide.load.model.ModelLoader
import com.bumptech.glide.load.model.ModelLoaderFactory
import com.bumptech.glide.load.model.MultiModelLoaderFactory


class AppIconModelLoaderFactory internal constructor(context: Context) :
    ModelLoaderFactory<ApplicationInfoModel, Drawable> {
    private val mContext: Context

    init {
        mContext = context
    }

    override fun build(multiFactory: MultiModelLoaderFactory): ModelLoader<ApplicationInfoModel, Drawable> {
        return AppIconModelLoader(mContext)
    }

    override fun teardown() {
        // Empty Implementation.
    }
}