1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 18:15:49 +01:00

make use of some new icons

This commit is contained in:
Andreas Shimokawa 2015-12-11 21:38:43 +01:00
parent c9d1b9dd4a
commit b1954eec3e
2 changed files with 17 additions and 11 deletions

View File

@ -50,7 +50,7 @@ public class GBDeviceAppAdapter extends ArrayAdapter<GBDeviceApp> {
deviceImageView.setImageResource(R.drawable.ic_watchface);
break;
default:
deviceImageView.setImageResource(R.drawable.ic_device_pebble);
deviceImageView.setImageResource(R.drawable.ic_watchapp);
}
return view;

View File

@ -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,6 +98,9 @@ public class PBWInstallHandler implements InstallHandler {
installItem.setName(app.getName());
installItem.setDetails(mContext.getString(R.string.pbwinstallhandler_app_item, app.getCreator(), app.getVersion()));
int drawable;
if (mPBWReader.isLanguage()) {
drawable = R.drawable.ic_languagepack;
} else {
switch (app.getType()) {
case WATCHFACE:
drawable = R.drawable.ic_watchface;
@ -104,7 +109,8 @@ public class PBWInstallHandler implements InstallHandler {
drawable = R.drawable.ic_activitytracker;
break;
default:
drawable = R.drawable.ic_device_pebble;
drawable = R.drawable.ic_watchapp;
}
}
installItem.setIcon(drawable);