Skip to content

Commit c2843f2

Browse files
author
farfromrefug
committed
chore(android): build fix
1 parent 66079af commit c2843f2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/ui-carto/platforms/android/java/com/akylas/carto/additions/AKRoutingServiceAdditions.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,13 @@ public static void calculateRoute (final RoutingService service, final RoutingRe
5050
@Override
5151
public void run() {
5252
RoutingResult result = null;
53+
String strResult = null;
5354
try {
5455
service.setProfile(profile);
5556
result = service.calculateRoute(request);
57+
if (stringify) {
58+
strResult = stringifyRoutingResult(result);
59+
}
5660
} catch (final Exception e) {
5761
e.printStackTrace();
5862
if (AKMapView.RUN_ON_MAIN_THREAD) {
@@ -72,7 +76,7 @@ public void run() {
7276
}
7377

7478
final RoutingResult fRa = result;
75-
final String fStrResult = stringify ? stringifyRoutingResult(result) : null;
79+
final String fStrResult = strResult;
7680
if (AKMapView.RUN_ON_MAIN_THREAD) {
7781
if (mainHandler == null) {
7882
mainHandler = new Handler(android.os.Looper.getMainLooper());

0 commit comments

Comments
 (0)