lets show 20 history items instead of 10

This commit is contained in:
tibbi 2022-03-21 22:22:47 +01:00
parent 7952075862
commit 542380889f

View File

@ -6,7 +6,7 @@ import com.simplemobiletools.calculator.models.History
@Dao
interface CalculatorDao {
@Query("SELECT * FROM history ORDER BY timestamp DESC LIMIT :limit")
fun getHistory(limit: Int = 10): List<History>
fun getHistory(limit: Int = 20): List<History>
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun insertOrUpdate(history: History): Long