mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-06 03:18:23 +00:00
Capture native app icon + name at connect/accept time
Call persistNativeAppMetadata right after the saved app is inserted in sendResult, so a first-ever connection populates its launcher icon and label immediately rather than waiting for a later request.
This commit is contained in:
@@ -895,6 +895,10 @@ object IntentUtils {
|
||||
|
||||
if (packageName != null) {
|
||||
dao.insertApplicationWithPermissions(application)
|
||||
// The calling app is visible to us now (mid-request); capture its
|
||||
// launcher icon + label so a first-ever connection populates them
|
||||
// immediately, not only on a later request.
|
||||
persistNativeAppMetadata(context, account, packageName)
|
||||
val historyDatabase = Amber.instance.getHistoryDatabase(account.npub)
|
||||
Amber.instance.applicationIOScope.launch {
|
||||
historyDatabase.dao().addHistory(
|
||||
|
||||
Reference in New Issue
Block a user