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:
commit
56e45eaa45
@ -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()) {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user