mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-27 12:15:50 +01:00
Fix unclosed streams during backup export.
This commit is contained in:
committed by
Alex Hart
parent
9fbc7c0f65
commit
4e01336b2f
@@ -39,6 +39,14 @@ class SpinnerApplicationContext : ApplicationContext() {
|
||||
.build()
|
||||
)
|
||||
|
||||
try {
|
||||
Class.forName("dalvik.system.CloseGuard")
|
||||
.getMethod("setEnabled", Boolean::class.javaPrimitiveType)
|
||||
.invoke(null, true)
|
||||
} catch (e: ReflectiveOperationException) {
|
||||
throw RuntimeException(e)
|
||||
}
|
||||
|
||||
Spinner.init(
|
||||
this,
|
||||
mapOf(
|
||||
|
||||
Reference in New Issue
Block a user