show coordinates with geo url to open in other mapping app

This commit is contained in:
goga 2021-03-16 10:04:01 +05:00
parent 53745ca9f5
commit 452bf6f6cb
5 changed files with 25 additions and 17 deletions

View file

@ -1235,7 +1235,7 @@ class MeshService : Service(), Logging {
MyNodeInfo(
myNodeNum,
hasGps,
hwModel,
hwModelDeprecated,
firmwareVersion,
firmwareUpdateFilename != null,
isBluetoothInterface && SoftwareUpdateService.shouldUpdate(
@ -1545,10 +1545,10 @@ class MeshService : Service(), Logging {
*/
private fun setFirmwareUpdateFilename(info: MeshProtos.MyNodeInfo) {
firmwareUpdateFilename = try {
if (info.region != null && info.firmwareVersion != null && info.hwModel != null)
if (info.region != null && info.firmwareVersion != null && info.hwModelDeprecated != null)
SoftwareUpdateService.getUpdateFilename(
this,
info.hwModel
info.hwModelDeprecated
)
else
null

View file

@ -160,7 +160,7 @@ class MockInterface(private val service: RadioInterfaceService) : Logging, IRadi
MeshProtos.FromRadio.newBuilder().apply {
myInfo = MeshProtos.MyNodeInfo.newBuilder().apply {
myNodeNum = MY_NODE
hwModel = "Sim"
hwModelDeprecated = "Sim"
messageTimeoutMsec = 5 * 60 * 1000
firmwareVersion = service.getString(R.string.cur_firmware_version)
numBands = 13