summaryrefslogtreecommitdiff
path: root/src/com/android/customization/model/themedicon
diff options
context:
space:
mode:
authorChing-Sung Li <chriscsli@google.com>2021-05-18 11:22:16 +0800
committerChing-Sung Li <chriscsli@google.com>2021-05-18 11:22:16 +0800
commitd22020fb29d39ace6fde36c6a18f66d79c98dfb7 (patch)
treef2119d30620bcd9282f6b823a26740c87e28b9f3 /src/com/android/customization/model/themedicon
parentcf80160fa3cc33c96d22895d04ffdb13bdbb1d3f (diff)
downloadThemePicker-d22020fb29d39ace6fde36c6a18f66d79c98dfb7.tar.gz
Fix intent filter to get launcher's meta-data
Use CATEGORY_HOME to get launcher's meta-data. Bug: 186590551 Test: Manual Change-Id: Ic6baa668957eff4a51d2bfc96cf03e1f7d1083b1
Diffstat (limited to 'src/com/android/customization/model/themedicon')
-rw-r--r--src/com/android/customization/model/themedicon/ThemedIconUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/customization/model/themedicon/ThemedIconUtils.java b/src/com/android/customization/model/themedicon/ThemedIconUtils.java
index 8f1bdeea..c339c5a8 100644
--- a/src/com/android/customization/model/themedicon/ThemedIconUtils.java
+++ b/src/com/android/customization/model/themedicon/ThemedIconUtils.java
@@ -36,7 +36,7 @@ public class ThemedIconUtils {
public ThemedIconUtils(Context context, String authorityMetaKey) {
mContext = context;
- Intent homeIntent = new Intent(Intent.ACTION_MAIN).addCategory(Intent.CATEGORY_LAUNCHER);
+ Intent homeIntent = new Intent(Intent.ACTION_MAIN).addCategory(Intent.CATEGORY_HOME);
ResolveInfo resolveInfo = mContext.getPackageManager().resolveActivity(homeIntent,
PackageManager.MATCH_DEFAULT_ONLY | PackageManager.GET_META_DATA);