Pebble: fix Pebble Health vanishing when deactivating

This commit is contained in:
Andreas Shimokawa 2016-11-09 12:06:13 +01:00
parent 3b474bb5a9
commit 837dfd5917
1 changed files with 3 additions and 1 deletions

View File

@ -310,7 +310,6 @@ public abstract class AbstractAppManagerFragment extends Fragment {
public boolean onContextItemSelected(MenuItem item, GBDeviceApp selectedApp) {
switch (item.getItemId()) {
case R.id.appmanager_health_deactivate:
case R.id.appmanager_app_delete_cache:
String baseName;
try {
@ -354,6 +353,9 @@ public abstract class AbstractAppManagerFragment extends Fragment {
case R.id.appmanager_health_activate:
GBApplication.deviceService().onInstallApp(Uri.parse("fake://health"));
return true;
case R.id.appmanager_health_deactivate:
GBApplication.deviceService().onAppDelete(selectedApp.getUUID());
return true;
case R.id.appmanager_app_configure:
GBApplication.deviceService().onAppStart(selectedApp.getUUID(), true);