Skip to content

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

Description

@Kethen

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);
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions