mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-25 08:05:55 +01:00
Pebble: Show correct icon for activity tracker and watchfaces in app installer (language and fw icons still missing)
This commit is contained in:
parent
18726eca33
commit
f59382e3c8
@ -5,6 +5,7 @@
|
|||||||
* Pebble: Increase maximum notification body length from 255 to 512 bytes on firmware 3.x
|
* Pebble: Increase maximum notification body length from 255 to 512 bytes on firmware 3.x
|
||||||
* Pebble: Support installing .pbl (language files) on firmware 3.x
|
* Pebble: Support installing .pbl (language files) on firmware 3.x
|
||||||
* Pebble: Correct setting the timezone on firmware 3.x (pebble expects the "ID" eg. Europe/Berlin)
|
* Pebble: Correct setting the timezone on firmware 3.x (pebble expects the "ID" eg. Europe/Berlin)
|
||||||
|
* Pebble: Show correct icon for activity tracker and watchfaces in app installer (language and fw icons still missing)
|
||||||
|
|
||||||
####Version 0.6.8
|
####Version 0.6.8
|
||||||
* Mi Band support for Firmware upgrade/downgrade on Mi Band 1A (white LEDs, no heartrate sensor)
|
* Mi Band support for Firmware upgrade/downgrade on Mi Band 1A (white LEDs, no heartrate sensor)
|
||||||
|
@ -95,6 +95,19 @@ public class PBWInstallHandler implements InstallHandler {
|
|||||||
if (app != null) {
|
if (app != null) {
|
||||||
installItem.setName(app.getName());
|
installItem.setName(app.getName());
|
||||||
installItem.setDetails(mContext.getString(R.string.pbwinstallhandler_app_item, app.getCreator(), app.getVersion()));
|
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;
|
||||||
|
}
|
||||||
|
installItem.setIcon(drawable);
|
||||||
|
|
||||||
installActivity.setInfoText(mContext.getString(R.string.app_install_info, app.getName(), app.getVersion(), app.getCreator()));
|
installActivity.setInfoText(mContext.getString(R.string.app_install_info, app.getName(), app.getVersion(), app.getCreator()));
|
||||||
installActivity.setInstallEnabled(true);
|
installActivity.setInstallEnabled(true);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user