mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 04:46:51 +01:00
Merge branch 'master' into background-javascript
This commit is contained in:
commit
0a9664d5ec
@ -1,5 +1,13 @@
|
|||||||
### Changelog
|
### Changelog
|
||||||
|
|
||||||
|
#### Version 0.21.2
|
||||||
|
* Amazfit Bip: Support flashing CEP and ALM files for AGPS
|
||||||
|
* Amazfit Bip: Initial experimental support for fetching logs from the watch
|
||||||
|
* Mi2/Bip: Send user info to the device (fixes calories and distance display)
|
||||||
|
* Mi2/Bip: Fix firmware update progressbar being stuck at the end
|
||||||
|
* Pebble/Bip: Support more notification icons
|
||||||
|
* Pebble: Automatically determine color for unknown notifications on Pebble Time
|
||||||
|
|
||||||
#### Version 0.21.1
|
#### Version 0.21.1
|
||||||
* Initial support for EXRIZU K8 (HPLus variant)
|
* Initial support for EXRIZU K8 (HPLus variant)
|
||||||
* Amazfit Bip: fix long messages not being displayed at all
|
* Amazfit Bip: fix long messages not being displayed at all
|
||||||
|
@ -26,8 +26,8 @@ android {
|
|||||||
targetSdkVersion 25
|
targetSdkVersion 25
|
||||||
|
|
||||||
// note: always bump BOTH versionCode and versionName!
|
// note: always bump BOTH versionCode and versionName!
|
||||||
versionName "0.21.1"
|
versionName "0.21.2"
|
||||||
versionCode 102
|
versionCode 103
|
||||||
vectorDrawables.useSupportLibrary = true
|
vectorDrawables.useSupportLibrary = true
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
@ -66,8 +66,13 @@ public class MiBand2Icon {
|
|||||||
case UNKNOWN:
|
case UNKNOWN:
|
||||||
return APP_11;
|
return APP_11;
|
||||||
case CONVERSATIONS:
|
case CONVERSATIONS:
|
||||||
|
case RIOT:
|
||||||
|
case HIPCHAT:
|
||||||
return WECHAT;
|
return WECHAT;
|
||||||
case GENERIC_EMAIL:
|
case GENERIC_EMAIL:
|
||||||
|
case GMAIL:
|
||||||
|
case YAHOO_MAIL:
|
||||||
|
case OUTLOOK:
|
||||||
return EMAIL;
|
return EMAIL;
|
||||||
case GENERIC_NAVIGATION:
|
case GENERIC_NAVIGATION:
|
||||||
return APP_11;
|
return APP_11;
|
||||||
@ -80,15 +85,15 @@ public class MiBand2Icon {
|
|||||||
case FACEBOOK_MESSENGER:
|
case FACEBOOK_MESSENGER:
|
||||||
return FACEBOOK_MESSENGER;
|
return FACEBOOK_MESSENGER;
|
||||||
case GOOGLE_HANGOUTS:
|
case GOOGLE_HANGOUTS:
|
||||||
|
case GOOGLE_MESSENGER:
|
||||||
return HANGOUTS;
|
return HANGOUTS;
|
||||||
case INSTAGRAM:
|
case INSTAGRAM:
|
||||||
|
case GOOGLE_PHOTOS:
|
||||||
return INSTAGRAM;
|
return INSTAGRAM;
|
||||||
case KAKAO_TALK:
|
case KAKAO_TALK:
|
||||||
return KAKAOTALK;
|
return KAKAOTALK;
|
||||||
case LINE:
|
case LINE:
|
||||||
return LINE;
|
return LINE;
|
||||||
case RIOT:
|
|
||||||
return WECHAT;
|
|
||||||
case SIGNAL:
|
case SIGNAL:
|
||||||
return CHAT_BLUE_13;
|
return CHAT_BLUE_13;
|
||||||
case TWITTER:
|
case TWITTER:
|
||||||
|
@ -91,6 +91,18 @@ public class UpdateFirmwareOperation extends AbstractMiBand2Operation {
|
|||||||
unsetBusy();
|
unsetBusy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean onCharacteristicWrite(BluetoothGatt gatt, BluetoothGattCharacteristic characteristic, int status) {
|
||||||
|
if (status != BluetoothGatt.GATT_SUCCESS) {
|
||||||
|
operationFailed();
|
||||||
|
}
|
||||||
|
return super.onCharacteristicWrite(gatt, characteristic, status);
|
||||||
|
}
|
||||||
|
|
||||||
|
private void operationFailed() {
|
||||||
|
GB.updateInstallNotification(getContext().getString(R.string.updatefirmwareoperation_write_failed), false, 0, getContext());
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onCharacteristicChanged(BluetoothGatt gatt,
|
public boolean onCharacteristicChanged(BluetoothGatt gatt,
|
||||||
BluetoothGattCharacteristic characteristic) {
|
BluetoothGattCharacteristic characteristic) {
|
||||||
@ -154,6 +166,7 @@ public class UpdateFirmwareOperation extends AbstractMiBand2Operation {
|
|||||||
default: {
|
default: {
|
||||||
LOG.error("Unexpected response during firmware update: ");
|
LOG.error("Unexpected response during firmware update: ");
|
||||||
getSupport().logMessageContent(value);
|
getSupport().logMessageContent(value);
|
||||||
|
operationFailed();
|
||||||
displayMessage(getContext(), getContext().getString(R.string.updatefirmwareoperation_updateproblem_do_not_reboot), Toast.LENGTH_LONG, GB.ERROR);
|
displayMessage(getContext(), getContext().getString(R.string.updatefirmwareoperation_updateproblem_do_not_reboot), Toast.LENGTH_LONG, GB.ERROR);
|
||||||
done();
|
done();
|
||||||
return;
|
return;
|
||||||
@ -165,6 +178,7 @@ public class UpdateFirmwareOperation extends AbstractMiBand2Operation {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
LOG.error("Unexpected notification during firmware update: ");
|
LOG.error("Unexpected notification during firmware update: ");
|
||||||
|
operationFailed();
|
||||||
getSupport().logMessageContent(value);
|
getSupport().logMessageContent(value);
|
||||||
displayMessage(getContext(), getContext().getString(R.string.updatefirmwareoperation_metadata_updateproblem), Toast.LENGTH_LONG, GB.ERROR);
|
displayMessage(getContext(), getContext().getString(R.string.updatefirmwareoperation_metadata_updateproblem), Toast.LENGTH_LONG, GB.ERROR);
|
||||||
done();
|
done();
|
||||||
|
@ -113,7 +113,7 @@ public class GBMusicControlReceiver extends BroadcastReceiver {
|
|||||||
MediaController controller = controllers.get(0);
|
MediaController controller = controllers.get(0);
|
||||||
audioPlayer = controller.getPackageName();
|
audioPlayer = controller.getPackageName();
|
||||||
} catch (IndexOutOfBoundsException e) {
|
} catch (IndexOutOfBoundsException e) {
|
||||||
LOG.error("IndexOutOfBoundsException: " + e.getMessage());
|
LOG.error("No media controller available", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return audioPlayer;
|
return audioPlayer;
|
||||||
|
@ -1,5 +1,13 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<changelog>
|
<changelog>
|
||||||
|
<release version="0.21.2" versioncode="103">
|
||||||
|
<change>Amazfit Bip: Support flashing CEP and ALM files for AGPS</change>
|
||||||
|
<change>Amazfit Bip: Initial experimental support for fetching logs from the watch</change>
|
||||||
|
<change>Mi2/Bip: Send user info to the device (fixes calories and distance display)</change>
|
||||||
|
<change>Mi2/Bip: Fix firmware update progressbar being stuck at the end</change>
|
||||||
|
<change>Pebble/Bip: Support more notification icons</change>
|
||||||
|
<change>Pebble: Automatically determine color for unknown notifications on Pebble Time</change>
|
||||||
|
</release>
|
||||||
<release version="0.21.1" versioncode="102">
|
<release version="0.21.1" versioncode="102">
|
||||||
<change>Initial support for EXRIZU K8 (HPLus variant)</change>
|
<change>Initial support for EXRIZU K8 (HPLus variant)</change>
|
||||||
<change>Amazfit Bip: fix long messages not being displayed at all</change>
|
<change>Amazfit Bip: fix long messages not being displayed at all</change>
|
||||||
|
6
fastlane/metadata/android/en-US/changelogs/103.txt
Normal file
6
fastlane/metadata/android/en-US/changelogs/103.txt
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
* Amazfit Bip: Support flashing CEP and ALM files for AGPS
|
||||||
|
* Amazfit Bip: Initial experimental support for fetching logs from the watch
|
||||||
|
* Mi2/Bip: Send user info to the device (fixes calories and distance display)
|
||||||
|
* Mi2/Bip: Fix firmware update progressbar being stuck at the end
|
||||||
|
* Pebble/Bip: Support more notification icons
|
||||||
|
* Pebble: Automatically determine color for unknown notifications on Pebble Time
|
Loading…
Reference in New Issue
Block a user