|
|
|
@ -99,7 +99,7 @@ class FavoriteSessionFinder { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Determines the favorite session given a [sessionType] and an optional [location] |
|
|
|
* Determines the favorite session given a [sessionType] and an optional [location] |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private fun favoriteSession(sessionType: Int, location: Location?, realm: Realm, context: Context) : Session? { |
|
|
|
fun favoriteSession(sessionType: Int, location: Location?, realm: Realm, context: Context) : Session? { |
|
|
|
|
|
|
|
|
|
|
|
val lastSessionsQuery = realm.where(Session::class.java).equalTo("type", sessionType) |
|
|
|
val lastSessionsQuery = realm.where(Session::class.java).equalTo("type", sessionType) |
|
|
|
if (location != null) { |
|
|
|
if (location != null) { |
|
|
|
|