-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(lifecycles): remove unnecessary thread schedulations
SUITEDEV-28864 Co-authored-by: kovacszsoltizsolt <[email protected]> Co-authored-by: davidSchuppa <[email protected]> Co-authored-by: LasOri <[email protected]>
- Loading branch information
1 parent
811afc0
commit ebd29f4
Showing
6 changed files
with
97 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
core/src/main/java/com/emarsys/core/concurrency/CoreHandler.java
This file was deleted.
Oops, something went wrong.
18 changes: 18 additions & 0 deletions
18
core/src/main/java/com/emarsys/core/concurrency/CoreHandler.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.emarsys.core.concurrency | ||
|
||
import android.os.Handler | ||
import com.emarsys.core.util.log.Logger.Companion.error | ||
import android.os.HandlerThread | ||
import android.os.Message | ||
import com.emarsys.core.util.log.entry.CrashLog | ||
import java.lang.Exception | ||
|
||
class CoreHandler(handlerThread: HandlerThread) : Handler(handlerThread.looper) { | ||
override fun dispatchMessage(msg: Message) { | ||
try { | ||
super.dispatchMessage(msg) | ||
} catch (e: Exception) { | ||
error(CrashLog(e)) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters