From 74ce6f1431068692507d152b0a60aab2b7169920 Mon Sep 17 00:00:00 2001 From: Aoudia Date: Wed, 28 Feb 2018 20:18:51 +0100 Subject: [PATCH] fix: Heat map empty list exception. --- app/src/main/AndroidManifest.xml | 4 ++-- .../main/java/science/apolline/view/fragment/MapFragment.kt | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 349aeb5..a76aa58 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -1,7 +1,7 @@ + android:versionCode="9" + android:versionName="2.2.1"> diff --git a/app/src/main/java/science/apolline/view/fragment/MapFragment.kt b/app/src/main/java/science/apolline/view/fragment/MapFragment.kt index 8922a42..a12f168 100644 --- a/app/src/main/java/science/apolline/view/fragment/MapFragment.kt +++ b/app/src/main/java/science/apolline/view/fragment/MapFragment.kt @@ -358,7 +358,9 @@ class MapFragment : RootFragment(), FragmentLifecycle, OnMapReadyCallback, AnkoL uiThread { info("Size of list after: " + geo.size) - addHeatMap(geo) + if(geo.isNotEmpty()){ + addHeatMap(geo) + } } } else {