Skip to content

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

@Kethen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions