1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-22 14:52:25 +02:00

Pebble: only remove apps from app list when they got deleted from cache also

This commit is contained in:
Andreas Shimokawa 2016-05-23 23:46:54 +02:00
parent 884c4262cf
commit 30c37d3172

View File

@ -230,11 +230,10 @@ public class AppManagerActivity extends GBActivity {
LOG.info("deleted file: " + fileToDelete.toString()); LOG.info("deleted file: " + fileToDelete.toString());
} }
} }
removeAppFromList(selectedApp.getUUID());
// fall through // fall through
case R.id.appmanager_app_delete: case R.id.appmanager_app_delete:
UUID uuid = selectedApp.getUUID(); GBApplication.deviceService().onAppDelete(selectedApp.getUUID());
GBApplication.deviceService().onAppDelete(uuid);
removeAppFromList(uuid);
return true; return true;
case R.id.appmanager_app_reinstall: case R.id.appmanager_app_reinstall:
File cachePath; File cachePath;