From f175d3b5820668d1e96e477886a9b9c534725dee Mon Sep 17 00:00:00 2001 From: Andrey Sokolov Date: Wed, 9 Aug 2023 12:06:47 +0400 Subject: [PATCH] fix: revert "fix: wait until build (including possible legacy data migration) is finished (#138)" This reverts commit c3075a98d22d445588630d14ad50fdf8707bd724. --- android/src/main/java/com/amplitude/android/Timeline.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/android/src/main/java/com/amplitude/android/Timeline.kt b/android/src/main/java/com/amplitude/android/Timeline.kt index 6da6cc5f..7f02e9da 100644 --- a/android/src/main/java/com/amplitude/android/Timeline.kt +++ b/android/src/main/java/com/amplitude/android/Timeline.kt @@ -21,9 +21,6 @@ class Timeline : Timeline() { internal fun start() { amplitude.amplitudeScope.launch(amplitude.storageIODispatcher) { - // Wait until build (including possible legacy data migration) is finished. - amplitude.isBuilt.await() - _sessionId.set(amplitude.storage.read(Storage.Constants.PREVIOUS_SESSION_ID)?.toLongOrNull() ?: -1) lastEventId = amplitude.storage.read(Storage.Constants.LAST_EVENT_ID)?.toLongOrNull() ?: 0 lastEventTime = amplitude.storage.read(Storage.Constants.LAST_EVENT_TIME)?.toLongOrNull() ?: -1