Added feature that prevents repositories from being downloaded every single time that user requests to show Module/Download fragment unless requested by user

This commit is contained in:
Viktor De Pasquale
2019-05-25 16:42:34 +02:00
parent 1c90b6eca3
commit 6e1aefe6d8
6 changed files with 11 additions and 10 deletions
@@ -2,6 +2,7 @@ package com.topjohnwu.magisk.data.database
import androidx.room.Dao
import androidx.room.Query
import androidx.room.Transaction
import com.skoumal.teanity.database.BaseDao
import com.topjohnwu.magisk.model.entity.Repository
@@ -9,6 +10,7 @@ import com.topjohnwu.magisk.model.entity.Repository
interface RepositoryDao : BaseDao<Repository> {
@Query("DELETE FROM repos")
@Transaction
override fun deleteAll()
@Query("SELECT * FROM repos")