|
|
|
@ -67,7 +67,7 @@ class PokerAnalyticsApplication : Application() { |
|
|
|
val sessionsCount = realm.where<Session>().findAll().size |
|
|
|
val sessionsCount = realm.where<Session>().findAll().size |
|
|
|
realm.close() |
|
|
|
realm.close() |
|
|
|
|
|
|
|
|
|
|
|
if (sessionsCount < 10) { |
|
|
|
if (sessionsCount < 1) { |
|
|
|
GlobalScope.launch { |
|
|
|
GlobalScope.launch { |
|
|
|
FakeDataManager.createFakeSessions(2000) |
|
|
|
FakeDataManager.createFakeSessions(2000) |
|
|
|
} |
|
|
|
} |
|
|
|
|