Pebble: hide the weather app menu entries on apps that aren't the weather app.
This commit is contained in:
parent
e477d22c88
commit
3280607cc9
|
@ -295,6 +295,10 @@ public abstract class AbstractAppManagerFragment extends Fragment {
|
||||||
menu.removeItem(R.id.appmanager_hrm_activate);
|
menu.removeItem(R.id.appmanager_hrm_activate);
|
||||||
menu.removeItem(R.id.appmanager_hrm_deactivate);
|
menu.removeItem(R.id.appmanager_hrm_deactivate);
|
||||||
}
|
}
|
||||||
|
if (!PebbleProtocol.UUID_WEATHER.equals(selectedApp.getUUID())) {
|
||||||
|
menu.removeItem(R.id.appmanager_weather_activate);
|
||||||
|
menu.removeItem(R.id.appmanager_weather_deactivate);
|
||||||
|
}
|
||||||
if (selectedApp.getType() == GBDeviceApp.Type.APP_SYSTEM || selectedApp.getType() == GBDeviceApp.Type.WATCHFACE_SYSTEM) {
|
if (selectedApp.getType() == GBDeviceApp.Type.APP_SYSTEM || selectedApp.getType() == GBDeviceApp.Type.WATCHFACE_SYSTEM) {
|
||||||
menu.removeItem(R.id.appmanager_app_delete);
|
menu.removeItem(R.id.appmanager_app_delete);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue