Skip to content

Commit

Permalink
## 4.4.0.11
Browse files Browse the repository at this point in the history
* Bug Fixes
  * address issue with Spot Markers not getting properly renamed when done in succession.
  * prevent a NullPointerException when rendering the label for a Range and Bearing arrow
  • Loading branch information
takdeveloper committed Feb 10, 2022
1 parent debddb8 commit b5b5357
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 12 deletions.
6 changes: 6 additions & 0 deletions VERSION.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Version History

## 4.4.0.11

* Bug Fixes
* address issue with Spot Markers not getting properly renamed when done in succession.
* prevent a NullPointerException when rendering the label for a Range and Bearing arrow

## 4.4.0.10

* Bug Fix
Expand Down
2 changes: 1 addition & 1 deletion atak/ATAK/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import java.util.regex.Pattern
buildscript {

ext.ATAK_VERSION = "4.4.0"
ext.ATAK_VERSION_SUBMINOR = ".10"
ext.ATAK_VERSION_SUBMINOR = ".11"

ext.jacocoVersion = '0.8.5'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,12 @@ public static List<RangeAndBearingMapItem> getUsers(PointMapItem point) {
}

private void updateLabel() {

if (_bearingUnits == null) {
_bearingUnits = Angle.DEGREE;
}


// This just updates the radial menu - probably shouldn't be here
setMetaBoolean("degs_t_bool", _bearingUnits == Angle.DEGREE
&& _northReference == NorthReference.TRUE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@
import com.atakmap.android.maps.MapView;
import com.atakmap.android.maps.Marker;
import com.atakmap.android.user.PlacePointTool;
import com.atakmap.annotations.DeprecatedApi;
import com.atakmap.app.R;
import com.atakmap.coremap.filesystem.FileSystemUtils;
import com.atakmap.coremap.maps.coords.GeoPoint;

/**
* Manage Spot Map intents
*
*
*/
public class SpotMapReceiver extends DropDownReceiver implements
OnStateListener {
Expand Down Expand Up @@ -59,6 +58,11 @@ public void disposeImpl() {
_item = null;
}

/**
* @deprecated Use {@link #closeDropDown()} instead
*/
@Deprecated
@DeprecatedApi(since = "4.5", forRemoval = true, removeAt = "4.8")
public void closeDrawingDropDown() {
closeDropDown();
}
Expand All @@ -76,22 +80,32 @@ public void onReceive(Context context, Intent intent) {
if (SPOT_DETAILS.equals(action) && marker != null) {
// Close other details that are open first, otherwise we'll have
// overwritten the info it needs to shut down when OnClose is called!
boolean close = false;
if (DropDownManager.getInstance().isTopDropDown(this)) {
if (_item != null && _item != marker)
closeDropDown();
close = true;
else if (_item == marker) {
if (!isVisible())
DropDownManager.getInstance().unHidePane();
return;
}
} else if (!isClosed())
closeDropDown();

// Make sure to cleanup existing marker before changing to new marker
cleanup(true);
close = true;

_item = marker;
_showPointDetails(_item);
if (close) {
// Close the drop-down and show the updated details the next frame
final Marker m = marker;
closeDropDown();
getMapView().post(new Runnable() {
@Override
public void run() {
_showPointDetails(_item = m);
}
});
} else {
// Show point details immediately
_showPointDetails(_item = marker);
}
}

// Toggle marker label
Expand Down Expand Up @@ -240,5 +254,4 @@ public void onDropDownSizeChanged(double width, double height) {
public void onDropDownClose() {
cleanup(true);
}

}
}
Binary file modified depends/assimp-4.0.1-mod.tar.gz
Binary file not shown.
Binary file modified depends/gdal-2.4.4-mod.tar.gz
Binary file not shown.
Binary file modified depends/tinygltf-2.4.1-mod.tar.gz
Binary file not shown.
Binary file modified depends/tinygltfloader-0.9.5-mod.tar.gz
Binary file not shown.
Binary file modified pluginsdk.zip
Binary file not shown.

0 comments on commit b5b5357

Please sign in to comment.