From e79e744e085be083b71ef67af4b9b03ea672c1df Mon Sep 17 00:00:00 2001 From: Viktor De Pasquale Date: Thu, 9 May 2019 17:13:02 +0200 Subject: [PATCH] Fixed magisk db not returning stuff due to bad syntax --- .../java/com/topjohnwu/magisk/data/database/base/MagiskQuery.kt | 2 +- .../topjohnwu/magisk/data/database/base/MagiskQueryBuilder.kt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/topjohnwu/magisk/data/database/base/MagiskQuery.kt b/app/src/main/java/com/topjohnwu/magisk/data/database/base/MagiskQuery.kt index 09429781f..470edb3e7 100644 --- a/app/src/main/java/com/topjohnwu/magisk/data/database/base/MagiskQuery.kt +++ b/app/src/main/java/com/topjohnwu/magisk/data/database/base/MagiskQuery.kt @@ -1,5 +1,5 @@ package com.topjohnwu.magisk.data.database.base data class MagiskQuery(private val _query: String) { - val query = "magisk --sqlite $_query" + val query = "magisk --sqlite '$_query'" } \ No newline at end of file diff --git a/app/src/main/java/com/topjohnwu/magisk/data/database/base/MagiskQueryBuilder.kt b/app/src/main/java/com/topjohnwu/magisk/data/database/base/MagiskQueryBuilder.kt index 463db2d2a..e78e25232 100644 --- a/app/src/main/java/com/topjohnwu/magisk/data/database/base/MagiskQueryBuilder.kt +++ b/app/src/main/java/com/topjohnwu/magisk/data/database/base/MagiskQueryBuilder.kt @@ -69,6 +69,7 @@ class Select : MagiskQueryBuilder { .appendln(condition) .appendln(orderField) .toString() + .replace("\n", " ") } }