Skip to content

Commit

Permalink
Fix display issue with debug report
Browse files Browse the repository at this point in the history
  • Loading branch information
Nain57 committed Sep 17, 2022
1 parent a48a35e commit 60ea2c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,10 +280,12 @@ class DetectorEngine(context: Context) {

processingJob = processingScope?.launch {
imageDetector = NativeDetector()

val shouldDebug = debugInstantData || debugReport
_debugEngine.value =
if ( _isDebugging.value) DebugEngine(debugInstantData, debugReport, _scenario.value!!, scenarioEvents.value)
if (shouldDebug) DebugEngine(debugInstantData, debugReport, _scenario.value!!, scenarioEvents.value)
else null
_isDebugging.emit(debugInstantData || debugReport)
_isDebugging.emit(shouldDebug)

scenarioProcessor = ScenarioProcessor(
imageDetector = imageDetector!!,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
-->
<FrameLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_width="wrap_content"
android:layout_height="wrap_content">

<include layout="@layout/merge_loadable_list"/>
Expand Down

0 comments on commit 60ea2c0

Please sign in to comment.