Skip to content

Commit e88e200

Browse files
Refactor: Move Realm queries from DashboardActivity to TeamRepository
Moved the direct Realm database queries in `handleTaskNavigation` and `handleJoinRequestNavigation` from `DashboardActivity` to new methods in `TeamRepository`. This change improves the architecture by centralizing data access in the repository layer and removing data-layer logic from the UI.
1 parent 77380dc commit e88e200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/org/ole/planet/myplanet/repository/RealmRepository.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import org.ole.planet.myplanet.datamanager.applyEqualTo
1414
import org.ole.planet.myplanet.datamanager.findCopyByField
1515
import org.ole.planet.myplanet.datamanager.queryList
1616

17-
open class RealmRepository(private val databaseService: DatabaseService) {
17+
open class RealmRepository(protected val databaseService: DatabaseService) {
1818
protected suspend fun <T : RealmObject> queryList(
1919
clazz: Class<T>,
2020
builder: RealmQuery<T>.() -> Unit = {},

0 commit comments

Comments
 (0)