Skip to content

Commit

Permalink
Use is connected flag to know to wrap bloks
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Luke De Feo authored and facebook-github-bot committed Jun 20, 2023
1 parent 468b551 commit 35e2dd2
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class UIDebuggerFlipperPlugin(val context: UIDContext) : FlipperPlugin {

@Throws(Exception::class)
override fun onConnect(connection: FlipperConnection) {
hasConnectedPreviously = true
this.context.connectionRef.connection = connection
this.context.bitmapPool.makeReady()

Expand Down Expand Up @@ -65,10 +64,4 @@ class UIDebuggerFlipperPlugin(val context: UIDContext) : FlipperPlugin {
override fun runInBackground(): Boolean {
return false
}

companion object {

var hasConnectedPreviously: Boolean = false
private set
}
}

0 comments on commit 35e2dd2

Please sign in to comment.