Simple-Gallery/app/src/main/kotlin/com/simplemobiletools/gallery/pro/App.kt

22 lines
685 B
Kotlin

package com.simplemobiletools.gallery.pro
import android.app.Application
import com.github.ajalt.reprint.core.Reprint
import com.simplemobiletools.commons.extensions.checkUseEnglish
import com.squareup.picasso.Downloader
import com.squareup.picasso.Picasso
import okhttp3.Request
import okhttp3.Response
class App : Application() {
override fun onCreate() {
super.onCreate()
checkUseEnglish()
Reprint.initialize(this)
Picasso.setSingletonInstance(Picasso.Builder(this).downloader(object : Downloader {
override fun load(request: Request) = Response.Builder().build()
override fun shutdown() {}
}).build())
}
}