mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-18 07:47:47 +01:00
Fix gradle format task.
This commit is contained in:
committed by
Alex Hart
parent
9cefe0bc04
commit
b48b1f031e
@@ -15,26 +15,26 @@ import org.signal.glide.common.io.InputStreamFactory
|
||||
object SignalGlideDependencies {
|
||||
private lateinit var _application: Application
|
||||
private lateinit var _provider: Provider
|
||||
|
||||
|
||||
@Synchronized
|
||||
fun init(application: Application, provider: Provider) {
|
||||
if (this::_application.isInitialized || this::_provider.isInitialized) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
_application = application
|
||||
_provider = provider
|
||||
}
|
||||
|
||||
|
||||
val application: Application
|
||||
get() = _application
|
||||
|
||||
fun getUriInputStreamFactory(uri: Uri): InputStreamFactory = _provider.getUriInputStreamFactory(uri)
|
||||
|
||||
|
||||
interface Provider {
|
||||
/**
|
||||
* A factory which can create an [java.io.InputStream] from a given [Uri]
|
||||
*/
|
||||
fun getUriInputStreamFactory(uri: Uri): InputStreamFactory
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user