From 80c550208c9e866c23a42b1304d036b6b6d87d10 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Tue, 18 Mar 2014 15:09:52 +0100 Subject: try to fix bug reported by dev console --- main/build.gradle | 4 ++-- main/openvpn/config-version.h | 2 +- .../de/blinkt/openvpn/fragments/LogFragment.java | 22 ++++++++++++---------- 3 files changed, 15 insertions(+), 13 deletions(-) (limited to 'main') diff --git a/main/build.gradle b/main/build.gradle index a9ec1b08..6c0f1164 100644 --- a/main/build.gradle +++ b/main/build.gradle @@ -24,8 +24,8 @@ android { defaultConfig { minSdkVersion 14 targetSdkVersion 19 - versionCode = 92 - versionName = "0.6.11" + versionCode = 93 + versionName = "0.6.12" } sourceSets { diff --git a/main/openvpn/config-version.h b/main/openvpn/config-version.h index 4dcbb0ae..60276cd8 100644 --- a/main/openvpn/config-version.h +++ b/main/openvpn/config-version.h @@ -1,2 +1,2 @@ -#define CONFIGURE_GIT_REVISION "icsopenvpn_610-eab94f1a54e461a1" +#define CONFIGURE_GIT_REVISION "icsopenvpn_612-757f9467b41fb40e" #define CONFIGURE_GIT_FLAGS "+" diff --git a/main/src/main/java/de/blinkt/openvpn/fragments/LogFragment.java b/main/src/main/java/de/blinkt/openvpn/fragments/LogFragment.java index 8530be34..386e3133 100644 --- a/main/src/main/java/de/blinkt/openvpn/fragments/LogFragment.java +++ b/main/src/main/java/de/blinkt/openvpn/fragments/LogFragment.java @@ -643,16 +643,18 @@ public class LogFragment extends ListFragment implements StateListener, SeekBar. @Override public void run() { - String prefix = getString(resId) + ":"; - if (status.equals("BYTECOUNT") || status.equals("NOPROCESS")) - prefix = ""; - if (resId == R.string.unknown_state) - prefix += status; - if (mSpeedView != null) - mSpeedView.setText(prefix + logMessage); - - if (mConnectStatus != null) - mConnectStatus.setText(getString(resId)); + if (isAdded()) { + String prefix = getString(resId) + ":"; + if (status.equals("BYTECOUNT") || status.equals("NOPROCESS")) + prefix = ""; + if (resId == R.string.unknown_state) + prefix += status; + if (mSpeedView != null) + mSpeedView.setText(prefix + logMessage); + + if (mConnectStatus != null) + mConnectStatus.setText(getString(resId)); + } } }); } -- cgit v1.2.3