fix: single-query listApps
This commit is contained in:
@@ -33,8 +33,9 @@ class AppRepository(private val source: AppSource) {
|
|||||||
private val gson = com.google.gson.Gson()
|
private val gson = com.google.gson.Gson()
|
||||||
|
|
||||||
fun listApps(): String {
|
fun listApps(): String {
|
||||||
Log.d("HearthBridge", "listApps: ${source.queryLaunchableApps().size} apps")
|
val apps = source.queryLaunchableApps()
|
||||||
return gson.toJson(source.queryLaunchableApps())
|
Log.d("HearthBridge", "listApps: ${apps.size} apps")
|
||||||
|
return gson.toJson(apps)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun launchApp(packageName: String): Boolean = source.launch(packageName)
|
fun launchApp(packageName: String): Boolean = source.launch(packageName)
|
||||||
|
|||||||
Reference in New Issue
Block a user