Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e12aa6b1 authored by Danesh Mondegarian's avatar Danesh Mondegarian
Browse files

Lockscreen Shortcuts : Fix custom icon removal

Compare entire filename when removing unused icons

Change-Id: I8eaaa9f940d830a555cda8af6dffd637e519b982
parent 31c9ba5f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -345,7 +345,7 @@ public class LockscreenTargets extends Fragment implements ShortcutPickHelper.On
        targetLayout.deleteCharAt(targetLayout.length() - 1);
        Settings.System.putString(mActivity.getContentResolver(), Settings.System.LOCKSCREEN_TARGETS, targetLayout.toString());
        for (File pic : mActivity.getFilesDir().listFiles()) {
            if (pic.getName().startsWith("lockscreen_") && !existingImages.contains(pic.getName())) {
            if (pic.getName().startsWith("lockscreen_") && !existingImages.contains(pic.toString())) {
                pic.delete();
            }
        }