mirror of
https://codeberg.org/timelimit/timelimit-android.git
synced 2025-10-03 09:49:25 +02:00
Sort devices by id
This commit is contained in:
parent
5ecef81c0e
commit
7e5d1bfd25
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* TimeLimit Copyright <C> 2019 - 2020 Jonas Lochmann
|
* TimeLimit Copyright <C> 2019 - 2021 Jonas Lochmann
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -38,7 +38,7 @@ abstract class DeviceDao {
|
||||||
@Query("SELECT * FROM device WHERE id = :deviceId")
|
@Query("SELECT * FROM device WHERE id = :deviceId")
|
||||||
abstract fun getDeviceByIdSync(deviceId: String): Device?
|
abstract fun getDeviceByIdSync(deviceId: String): Device?
|
||||||
|
|
||||||
@Query("SELECT * FROM device")
|
@Query("SELECT * FROM device ORDER BY id")
|
||||||
abstract fun getAllDevicesLive(): LiveData<List<Device>>
|
abstract fun getAllDevicesLive(): LiveData<List<Device>>
|
||||||
|
|
||||||
@Query("SELECT * FROM device")
|
@Query("SELECT * FROM device")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue