Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: user can select which apps can show shortcuts #2024

Closed
wants to merge 7 commits into from

Conversation

LukeNeedham
Copy link
Contributor

Hi there, thanks for this great launcher. Been using it every day for the past 5 years and loving it! Thought it was time to give back ;-)

This is a use-case I personally have wanted for a while. In my case, I like having app shortcuts available in KISS for some apps, but not other apps. In particular, I've been wanting to get rid of the shortcuts from Spotify for a long time. This new feature makes that possible.

Resolved issues:

Possibly resolved issues:

The user can select which apps are allowed to display shortcuts using a new settings sub-page, using the existing ExcludePreferenceScreen. The excluded apps are stored in a StringSet in the SharedPreferences, in a similar way to how excluding apps from history works. Upon excluding / including an app, the shortcuts automatically refresh.

Within 'Seach Settings', a new 'View or edit apps excluded from shortcuts' button has been added directly below the 'Shortcuts' switch. This button is added asynchronously:

image

Clicking that button brings you to this familiar UI:

image

Note that by default, no apps are excluded from showing shortcuts - not even KISS launcher itself.

The 'Shortcuts' switch still has ultimate power - if the switch is 'off', no shortcuts will show. If the switch is 'on', shortcuts will show for all the apps which aren't in the excluded list.

Tested on:

  • API 22 (emulator) - does nothing, because shortcuts are no supported, but the UI in the settings still shows (similar to existing shortcuts switch)
  • API 27 (physical) - works as expected
  • API 32 (emulator) - works as expected

@LukeNeedham LukeNeedham marked this pull request as draft December 12, 2022 16:10
@LukeNeedham
Copy link
Contributor Author

Closed in favour of #2025 - to remove commits under the wrong author

@LukeNeedham LukeNeedham deleted the enabled-shortcut-apps branch December 12, 2022 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants