Add logging to shortcut pin request handler

This commit is contained in:
MM20
2023-10-02 10:54:51 +02:00
parent e08e9a370c
commit 633cc0214d
3 changed files with 19 additions and 2 deletions
@@ -2,6 +2,7 @@ package de.mm20.launcher2.activity
import android.app.Activity
import android.os.Bundle
import android.util.Log
import de.mm20.launcher2.searchable.SearchableRepository
import de.mm20.launcher2.search.data.AppShortcut
import de.mm20.launcher2.services.favorites.FavoritesService
@@ -16,6 +17,8 @@ class AddItemActivity : Activity() {
val shortcut = AppShortcut.fromPinRequestIntent(this, intent)
if (shortcut != null) {
favoritesService.pinItem(shortcut)
} else {
Log.w("MM20", "Shortcut could not be added")
}
finish()
}