mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-27 18:17:33 +01:00
Pebble: fix Pebble Health vanishing when deactivating
This commit is contained in:
parent
3b474bb5a9
commit
837dfd5917
@ -310,7 +310,6 @@ public abstract class AbstractAppManagerFragment extends Fragment {
|
|||||||
|
|
||||||
public boolean onContextItemSelected(MenuItem item, GBDeviceApp selectedApp) {
|
public boolean onContextItemSelected(MenuItem item, GBDeviceApp selectedApp) {
|
||||||
switch (item.getItemId()) {
|
switch (item.getItemId()) {
|
||||||
case R.id.appmanager_health_deactivate:
|
|
||||||
case R.id.appmanager_app_delete_cache:
|
case R.id.appmanager_app_delete_cache:
|
||||||
String baseName;
|
String baseName;
|
||||||
try {
|
try {
|
||||||
@ -354,6 +353,9 @@ public abstract class AbstractAppManagerFragment extends Fragment {
|
|||||||
case R.id.appmanager_health_activate:
|
case R.id.appmanager_health_activate:
|
||||||
GBApplication.deviceService().onInstallApp(Uri.parse("fake://health"));
|
GBApplication.deviceService().onInstallApp(Uri.parse("fake://health"));
|
||||||
return true;
|
return true;
|
||||||
|
case R.id.appmanager_health_deactivate:
|
||||||
|
GBApplication.deviceService().onAppDelete(selectedApp.getUUID());
|
||||||
|
return true;
|
||||||
case R.id.appmanager_app_configure:
|
case R.id.appmanager_app_configure:
|
||||||
GBApplication.deviceService().onAppStart(selectedApp.getUUID(), true);
|
GBApplication.deviceService().onAppStart(selectedApp.getUUID(), true);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user