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

Make dynamic shortcuts configurable #66

Merged
merged 1 commit into from
Sep 2, 2024
Merged

Make dynamic shortcuts configurable #66

merged 1 commit into from
Sep 2, 2024

Conversation

chenxiaolong
Copy link
Owner

This way, the user can choose which remotes they want shortcuts for. Previously, the visibility was tied to whether external app access was blocked. The default state for this new option is to not add a shortcut. The state is saved in rclone.conf so it is preserved when exporting and reimporting a config.

This commit also fixes RSAF crashing when the number of shortcuts exceeds Android's limit (usually 15). If there are too many shortcuts, the list will now be silently truncated. There is no UI warning for this because the user-facing limit is the launcher's limit (usually 4), which is way less than Android's limit and there's no API for querying it. It doesn't make sense to show a warning long after the launcher already started hiding shortcuts.

Fixes: #65

This way, the user can choose which remotes they want shortcuts for.
Previously, the visibility was tied to whether external app access was
blocked. The default state for this new option is to not add a shortcut.
The state is saved in rclone.conf so it is preserved when exporting and
reimporting a config.

This commit also fixes RSAF crashing when the number of shortcuts
exceeds Android's limit (usually 15). If there are too many shortcuts,
the list will now be silently truncated. There is no UI warning for this
because the user-facing limit is the launcher's limit (usually 4), which
is way less than Android's limit and there's no API for querying it. It
doesn't make sense to show a warning long after the launcher already
started hiding shortcuts.

Fixes: #65

Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
@chenxiaolong chenxiaolong self-assigned this Sep 2, 2024
chenxiaolong added a commit that referenced this pull request Sep 2, 2024
Signed-off-by: Andrew Gunnerson <accounts+github@chiller3.com>
@chenxiaolong chenxiaolong merged commit 71ef5f6 into master Sep 2, 2024
1 check passed
@chenxiaolong chenxiaolong deleted the shortcuts branch September 2, 2024 23:24
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.

Importing rclone.conf causes app to keep crashing
1 participant