Skip to content

Commit 2c94030

Browse files
committed
reproduce ANR caused by operationModelStore.load
1 parent 7c15a59 commit 2c94030

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

OneSignalSDK/onesignal/core/src/main/java/com/onesignal/core/internal/operations/impl/OperationModelStore.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import org.json.JSONObject
3030
internal class OperationModelStore(prefs: IPreferencesService) : ModelStore<Operation>("operations", prefs) {
3131
fun loadOperations() {
3232
load()
33+
Logging.debug("OperationModelStore finished loading.")
3334
}
3435

3536
override fun create(jsonObject: JSONObject?): Operation? {
@@ -63,6 +64,7 @@ internal class OperationModelStore(prefs: IPreferencesService) : ModelStore<Oper
6364
else -> throw Exception("Unrecognized operation: $operationName")
6465
}
6566

67+
Thread.sleep(5000)
6668
// populate the operation with the data.
6769
operation.initializeFromJson(jsonObject)
6870

0 commit comments

Comments
 (0)