From e0b8b310017c7a00ac0117e04a8e733c575d285f Mon Sep 17 00:00:00 2001 From: Pygmalion69 Date: Mon, 7 Jan 2019 18:45:23 +0100 Subject: [PATCH] Apply GPX URI string from instance state --- app/build.gradle | 4 ++-- app/src/main/java/org/nitri/opentopo/MainActivity.java | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index c294a1e..0b8bd3f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId "org.nitri.opentopo" minSdkVersion 19 targetSdkVersion 28 - versionCode 8 - versionName "1.3" + versionCode 9 + versionName "1.3.1" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { diff --git a/app/src/main/java/org/nitri/opentopo/MainActivity.java b/app/src/main/java/org/nitri/opentopo/MainActivity.java index a767283..bd67c5e 100644 --- a/app/src/main/java/org/nitri/opentopo/MainActivity.java +++ b/app/src/main/java/org/nitri/opentopo/MainActivity.java @@ -105,9 +105,7 @@ private void addMapFragment() { getSupportFragmentManager().beginTransaction() .add(R.id.map_container, mapFragment, MAP_FRAGMENT_TAG) .commit(); - if (mGpxUri != null) { - parseGpx(mGpxUri); - } + setGpx(); } private boolean mapFragmentAdded() {