mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-18 12:28:40 +00:00
fix: x86 Flatpak bundles are refused with a clear message instead of installing and failing to start (#1873)
This commit is contained in:
1 parent
8cf01ebb77
commit
6673a892e2
36 files changed
+133
-2
No files matched your search
@@ -117,7 +117,11 @@ object FlatpakManager {
|
||||
when (o.optString("e")) {
|
||||
"op" -> { step = stage(context, o); onProgress(step, overall(o, 0)) }
|
||||
"progress" -> onProgress(step, overall(o, o.optInt("percent")))
|
||||
"error" -> { error = o.optString("message"); Log.w(TAG, "$verb $id: $error") }
|
||||
"error" -> {
|
||||
error = if (o.optString("code") == "arch") context.getString(R.string.flatpakmgr_wrong_arch, o.optString("id"), o.optString("arch"))
|
||||
else o.optString("message")
|
||||
Log.w(TAG, "$verb $id: ${o.optString("message")}")
|
||||
}
|
||||
"warning" -> Log.w(TAG, "$verb $id: ${o.optString("message")}")
|
||||
"done" -> onDone(o)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user