Use is connected flag to know to wrap bloks

Summary:
we need to wrap the bloks layout in a debug variet in order for flipper to work. See this diff for context D45605120

We are now using wether flipper is connected at all which is much more reliable.

Reviewed By: lblasa

Differential Revision: D46854921

fbshipit-source-id: 1b3baef2681ccce50fd452044cd3f740c256b0a9
This commit is contained in:
Luke De Feo
2023-06-20 05:25:21 -07:00
committed by Facebook GitHub Bot
parent 468b5510a8
commit 35e2dd2e17

View File

@@ -31,7 +31,6 @@ class UIDebuggerFlipperPlugin(val context: UIDContext) : FlipperPlugin {
@Throws(Exception::class) @Throws(Exception::class)
override fun onConnect(connection: FlipperConnection) { override fun onConnect(connection: FlipperConnection) {
hasConnectedPreviously = true
this.context.connectionRef.connection = connection this.context.connectionRef.connection = connection
this.context.bitmapPool.makeReady() this.context.bitmapPool.makeReady()
@@ -65,10 +64,4 @@ class UIDebuggerFlipperPlugin(val context: UIDContext) : FlipperPlugin {
override fun runInBackground(): Boolean { override fun runInBackground(): Boolean {
return false return false
} }
companion object {
var hasConnectedPreviously: Boolean = false
private set
}
} }