Improve Session game update

feature/top10
Aurelien Hubert 7 years ago
parent c95cba6413
commit ec4892f6e2
  1. 3
      app/src/main/java/net/pokeranalytics/android/model/realm/Session.kt
  2. 1
      app/src/main/java/net/pokeranalytics/android/ui/fragment/components/bottomsheet/BottomSheetListGameFragment.kt

@ -774,9 +774,12 @@ open class Session : RealmObject(), SessionInterface, Manageable, StaticRowRepre
} catch (e: Exception) { } catch (e: Exception) {
null null
} }
} else if (value is Game?) {
game = value
} else if (value == null) { } else if (value == null) {
limit = null limit = null
game = null game = null
} }
} }
SessionRow.INITIAL_BUY_IN -> tournamentEntryFee = if (value == null) null else (value as String).toDouble() SessionRow.INITIAL_BUY_IN -> tournamentEntryFee = if (value == null) null else (value as String).toDouble()

@ -38,7 +38,6 @@ class BottomSheetListGameFragment : BottomSheetListFragment() {
dismiss() dismiss()
} }
} }
super.onRowSelected(position, row, fromAction)
} }
/** /**

Loading…
Cancel
Save