From 118ac3ab7e5ecb9bc9adcc5858b57290b11a25c8 Mon Sep 17 00:00:00 2001 From: Luke Date: Tue, 27 Dec 2022 16:16:21 +0100 Subject: [PATCH] Remove todo, add docs --- app/src/main/java/fr/neamar/kiss/DataHandler.java | 4 ++++ app/src/main/java/fr/neamar/kiss/loader/LoadAppPojos.java | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/fr/neamar/kiss/DataHandler.java b/app/src/main/java/fr/neamar/kiss/DataHandler.java index 68ed39e76..411b0cd56 100644 --- a/app/src/main/java/fr/neamar/kiss/DataHandler.java +++ b/app/src/main/java/fr/neamar/kiss/DataHandler.java @@ -64,6 +64,10 @@ public class DataHandler extends BroadcastReceiver "app", "contacts", "shortcuts" ); + /** + * Key for a preference that holds a String set of apps which are excluded from showing shortcuts. + * Each string in the set is the packageName of an app which may not show shortcuts. + */ public final static String PREF_KEY_EXCLUDED_SHORTCUT_APPS = "excluded-shortcut-apps"; private TagsHandler tagsHandler; diff --git a/app/src/main/java/fr/neamar/kiss/loader/LoadAppPojos.java b/app/src/main/java/fr/neamar/kiss/loader/LoadAppPojos.java index 16b8f3071..a4642d594 100644 --- a/app/src/main/java/fr/neamar/kiss/loader/LoadAppPojos.java +++ b/app/src/main/java/fr/neamar/kiss/loader/LoadAppPojos.java @@ -94,7 +94,6 @@ private AppPojo createPojo(UserHandle userHandle, String packageName, String act boolean isExcluded = excludedAppList.contains(AppPojo.getComponentName(packageName, activityName, userHandle)); boolean isExcludedFromHistory = excludedFromHistoryAppList.contains(id); - // TODO: are we checking for 'packageName' or 'id'? Test boolean isExcludedShortcuts = excludedShortcutsAppList.contains(packageName); AppPojo app = new AppPojo(id, packageName, activityName, userHandle, isExcluded, isExcludedFromHistory, isExcludedShortcuts);