1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-28 04:46:51 +01:00

Merge remote-tracking branch 'origin/master'

This commit is contained in:
Daniel Dakhno 2022-06-24 13:13:20 +02:00
commit 56e45eaa45
2 changed files with 3 additions and 3 deletions

View File

@ -437,7 +437,7 @@ public abstract class AbstractAppManagerFragment extends Fragment {
switch (item.getItemId()) {
case R.id.appmanager_app_delete_cache:
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) {
File fileToDelete = new File(appCacheDir,baseName + suffix);
if (!fileToDelete.delete()) {

View File

@ -82,8 +82,8 @@ public class FossilFileReader {
buf.order(ByteOrder.LITTLE_ENDIAN);
short handle = buf.getShort();
short version = buf.getShort();
if ((handle == 5630) && (version == 3 || version == 515 || version == 771)) {
byte version = buf.get();
if (handle == 5630 && version == 3) {
// This is a watch app or watch face
isValid = true;
isApp = true;