diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/adapter/GBDeviceAppAdapter.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/adapter/GBDeviceAppAdapter.java index 7f3572e4..b93e00bb 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/adapter/GBDeviceAppAdapter.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/adapter/GBDeviceAppAdapter.java @@ -50,7 +50,7 @@ public class GBDeviceAppAdapter extends ArrayAdapter { deviceImageView.setImageResource(R.drawable.ic_watchface); break; default: - deviceImageView.setImageResource(R.drawable.ic_device_pebble); + deviceImageView.setImageResource(R.drawable.ic_watchapp); } return view; diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/pebble/PBWInstallHandler.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/pebble/PBWInstallHandler.java index 691ccb0e..1619467b 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/pebble/PBWInstallHandler.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/pebble/PBWInstallHandler.java @@ -72,9 +72,11 @@ public class PBWInstallHandler implements InstallHandler { } GenericItem installItem = new GenericItem(); - installItem.setIcon(R.drawable.ic_device_pebble); + installItem.setIcon(R.drawable.ic_watchapp); // FIXME: do not set twice if (mPBWReader.isFirmware()) { + installItem.setIcon(R.drawable.ic_firmware); + String hwRevision = mPBWReader.getHWRevision(); if (hwRevision != null && hwRevision.equals(device.getHardwareVersion())) { installItem.setName(mContext.getString(R.string.pbw_installhandler_pebble_firmware, "")); @@ -96,15 +98,19 @@ public class PBWInstallHandler implements InstallHandler { installItem.setName(app.getName()); installItem.setDetails(mContext.getString(R.string.pbwinstallhandler_app_item, app.getCreator(), app.getVersion())); int drawable; - switch (app.getType()) { - case WATCHFACE: - drawable = R.drawable.ic_watchface; - break; - case APP_ACTIVITYTRACKER: - drawable = R.drawable.ic_activitytracker; - break; - default: - drawable = R.drawable.ic_device_pebble; + if (mPBWReader.isLanguage()) { + drawable = R.drawable.ic_languagepack; + } else { + switch (app.getType()) { + case WATCHFACE: + drawable = R.drawable.ic_watchface; + break; + case APP_ACTIVITYTRACKER: + drawable = R.drawable.ic_activitytracker; + break; + default: + drawable = R.drawable.ic_watchapp; + } } installItem.setIcon(drawable);