Skip to content

Commit

Permalink
change(ui): look for screen first
Browse files Browse the repository at this point in the history
  • Loading branch information
shekarsiri committed Dec 23, 2024
1 parent 3db9a80 commit f7506a1
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions tracker/src/main/java/com/openreplay/tracker/ORTracker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,6 @@ object OpenReplay {
MessageCollector.start()

with(options) {
if (logs) LogsListener.start()
if (crashes) {
Crash.init(appContext!!)
Crash.start()
}
if (performances) PerformanceListener.getInstance(appContext!!).start()
if (screen) {
ScreenshotManager.setSettings(
settings = getCaptureSettings(
Expand All @@ -143,6 +137,12 @@ object OpenReplay {
)
ScreenshotManager.start(appContext!!, sessionStartTs)
}
if (logs) LogsListener.start()
if (crashes) {
Crash.init(appContext!!)
Crash.start()
}
if (performances) PerformanceListener.getInstance(appContext!!).start()
if (analytics) Analytics.start()
}
onStarted()
Expand All @@ -168,12 +168,6 @@ object OpenReplay {
onStarted()

with(this.options) {
if (logs) LogsListener.start()
if (crashes) {
Crash.init(appContext!!)
Crash.start()
}
if (performances) PerformanceListener.getInstance(appContext!!).start()
if (screen) {
ScreenshotManager.setSettings(
settings = getCaptureSettings(
Expand All @@ -183,6 +177,12 @@ object OpenReplay {
)
ScreenshotManager.start(appContext!!, sessionStartTs)
}
if (logs) LogsListener.start()
if (crashes) {
Crash.init(appContext!!)
Crash.start()
}
if (performances) PerformanceListener.getInstance(appContext!!).start()
if (analytics) Analytics.start()
}
}
Expand Down

0 comments on commit f7506a1

Please sign in to comment.