mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-11 20:49:25 +01:00
Fossil Hybrid HR: When deleting a watchface, remove the preview image as well
This commit is contained in:
parent
0349b2530f
commit
8c4ab7e713
@ -437,7 +437,7 @@ public abstract class AbstractAppManagerFragment extends Fragment {
|
|||||||
switch (item.getItemId()) {
|
switch (item.getItemId()) {
|
||||||
case R.id.appmanager_app_delete_cache:
|
case R.id.appmanager_app_delete_cache:
|
||||||
String baseName = selectedApp.getUUID().toString();
|
String baseName = selectedApp.getUUID().toString();
|
||||||
String[] suffixToDelete = new String[]{mCoordinator.getAppFileExtension(), ".json", "_config.js", "_preset.json", ".png"};
|
String[] suffixToDelete = new String[]{mCoordinator.getAppFileExtension(), ".json", "_config.js", "_preset.json", ".png", "_preview.png"};
|
||||||
for (String suffix : suffixToDelete) {
|
for (String suffix : suffixToDelete) {
|
||||||
File fileToDelete = new File(appCacheDir,baseName + suffix);
|
File fileToDelete = new File(appCacheDir,baseName + suffix);
|
||||||
if (!fileToDelete.delete()) {
|
if (!fileToDelete.delete()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user