From a6953afc1e89126d68b22646ea40896d82ed5cc4 Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Sat, 9 Jul 2022 21:49:04 +0200 Subject: [PATCH] [merge] Disable flipper on sdk 21 to fix crash Change-Id: I64286edca783ac83ee3531d8017e1d7209e51867 --- vector/src/debug/java/im/vector/app/flipper/FlipperProxy.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vector/src/debug/java/im/vector/app/flipper/FlipperProxy.kt b/vector/src/debug/java/im/vector/app/flipper/FlipperProxy.kt index 76be7e1b46..4dcd114f83 100644 --- a/vector/src/debug/java/im/vector/app/flipper/FlipperProxy.kt +++ b/vector/src/debug/java/im/vector/app/flipper/FlipperProxy.kt @@ -17,6 +17,7 @@ package im.vector.app.flipper import android.content.Context +import android.os.Build import com.facebook.flipper.android.AndroidFlipperClient import com.facebook.flipper.android.utils.FlipperUtils import com.facebook.flipper.plugins.crashreporter.CrashReporterPlugin @@ -42,6 +43,8 @@ class FlipperProxy @Inject constructor( private val networkFlipperPlugin = NetworkFlipperPlugin() fun init(matrix: Matrix) { + // https://github.com/facebook/flipper/issues/3572 + if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.LOLLIPOP_MR1) return SoLoader.init(context, false) if (FlipperUtils.shouldEnableFlipper(context)) {