Added the cleanup of ComputableResult when deleting a Session

feature/top10
Laurent 7 years ago
parent f522dd13e4
commit c268cca124
  1. 1
      app/src/main/java/net/pokeranalytics/android/model/realm/Session.kt

@ -510,6 +510,7 @@ open class Session : RealmObject(), Manageable, StaticRowRepresentableDataSource
// cleanup unnecessary related objects // cleanup unnecessary related objects
set.deleteFromRealm() set.deleteFromRealm()
this.result?.deleteFromRealm() this.result?.deleteFromRealm()
this.computableResults?.deleteAllFromRealm()
// Updates the timeline // Updates the timeline
SessionSetManager.removeFromTimeline(this) SessionSetManager.removeFromTimeline(this)

Loading…
Cancel
Save