Skip to content

Commit

Permalink
Remove todo, add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeNeedham committed Dec 27, 2022
1 parent 3600d72 commit 118ac3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/src/main/java/fr/neamar/kiss/DataHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/fr/neamar/kiss/loader/LoadAppPojos.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 118ac3a

Please sign in to comment.