mirror of
https://github.com/SimpleMobileTools/Simple-Calculator.git
synced 2025-02-09 16:18:43 +01:00
lets show 20 history items instead of 10
This commit is contained in:
parent
7952075862
commit
542380889f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user