Added new log screen

This commit is contained in:
Viktor De Pasquale
2019-11-20 22:42:44 +01:00
parent fbeaad077f
commit 6379108a75
13 changed files with 306 additions and 14 deletions
@@ -14,8 +14,10 @@ class LogRepository(
private val logDao: LogDao
) {
fun fetchLogs() = logDao.fetchAll()
.map { it.sortByDescending { it.date.time }; it }
fun fetchLogsNowrap() = logDao.fetchAll()
.map { it.sortedByDescending { it.date.time } }
fun fetchLogs() = fetchLogsNowrap()
.map { it.wrap() }
fun fetchMagiskLogs() = "tail -n 5000 ${Const.MAGISK_LOG}".suRaw()