|
|
|
@ -7,6 +7,8 @@ import io.realm.Realm |
|
|
|
import io.realm.RealmConfiguration |
|
|
|
import io.realm.RealmConfiguration |
|
|
|
import io.realm.RealmResults |
|
|
|
import io.realm.RealmResults |
|
|
|
import io.realm.kotlin.where |
|
|
|
import io.realm.kotlin.where |
|
|
|
|
|
|
|
import kotlinx.coroutines.GlobalScope |
|
|
|
|
|
|
|
import kotlinx.coroutines.launch |
|
|
|
import net.pokeranalytics.android.model.realm.Session |
|
|
|
import net.pokeranalytics.android.model.realm.Session |
|
|
|
import net.pokeranalytics.android.model.utils.Seed |
|
|
|
import net.pokeranalytics.android.model.utils.Seed |
|
|
|
import net.pokeranalytics.android.util.FakeDataManager |
|
|
|
import net.pokeranalytics.android.util.FakeDataManager |
|
|
|
@ -77,7 +79,9 @@ class PokerAnalyticsApplication : Application() { |
|
|
|
realm.close() |
|
|
|
realm.close() |
|
|
|
|
|
|
|
|
|
|
|
if (sessionsCount < 10) { |
|
|
|
if (sessionsCount < 10) { |
|
|
|
FakeDataManager.createFakeSessions(2000) |
|
|
|
GlobalScope.launch { |
|
|
|
|
|
|
|
FakeDataManager.createFakeSessions(2000) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|