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

Shortcut-less apps randomly missing from adding shortcut to lock screen, v2.9 #134

Open
Kethen opened this issue Nov 19, 2021 · 0 comments

Comments

@Kethen
Copy link

Kethen commented Nov 19, 2021

for (int i = 0; i < otherApps.getPreferenceCount(); i++) {

some items in otherApps are not inserted into screen properly due to the nature of looping on a shrinking list with an index loop, instead of a while loop

suggested fix:

while(otherApps.getPreferenceCount() != 0){
    Preference p = otherApps.getPreference(0);
    otherApps.removePreference(p);
    p.setOrder(Preference.DEFAULT_ORDER);
    screen.addPreference(p);
}
@Kethen Kethen changed the title Shortcut-less apps randomly missing from adding shortcut to homescreen Shortcut-less apps randomly missing from adding shortcut to lock screen Nov 19, 2021
@Kethen Kethen changed the title Shortcut-less apps randomly missing from adding shortcut to lock screen Shortcut-less apps randomly missing from adding shortcut to lock screen, v2.9 Nov 19, 2021
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

No branches or pull requests

1 participant