Adding additional logging around updated shortcuts

Bug: 338218961
Test: locally
Flag: N/A
Change-Id: Ic72ec2686de20036928c1e98b52677bd82368282
This commit is contained in:
Charlie Anderson committed 2024-05-15 14:18:21 -04:00
1 parent 42af1f0725
commit 1e96d751d2
2 files changed
+26 -8

No files matched your search

@@ -22,6 +22,7 @@ import android.content.Context;
import android.content.Intent;
import android.content.pm.ShortcutInfo;
import android.text.TextUtils;
import android.util.Log;
import androidx.annotation.NonNull;
@@ -186,9 +187,12 @@ public class WorkspaceItemInfo extends ItemInfoWithIcon {
if (shortcutInfo.isEnabled()) {
runtimeStatusFlags &= ~FLAG_DISABLED_BY_PUBLISHER;
} else {
Log.w(TAG, "updateFromDeepShortcutInfo: Updated shortcut has been disabled. "
+ " package=" + shortcutInfo.getPackage()
+ " disabledReason=" + shortcutInfo.getDisabledReason());
runtimeStatusFlags |= FLAG_DISABLED_BY_PUBLISHER;
}
disabledMessage = shortcutInfo.getDisabledMessage();
if (shortcutInfo.getDisabledReason() == ShortcutInfo.DISABLED_REASON_VERSION_LOWER) {
runtimeStatusFlags |= FLAG_DISABLED_VERSION_LOWER;
} else {