mirror of
https://github.com/SimpleMobileTools/Simple-Calculator.git
synced 2025-06-05 21:49:13 +02:00
lets show 20 history items instead of 10
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user