mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
make use of some new icons
This commit is contained in:
@@ -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;
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user