diff options
author | Arne Schwabe <arne@rfc2549.org> | 2014-03-18 15:09:52 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2014-03-18 15:09:52 +0100 |
commit | 80c550208c9e866c23a42b1304d036b6b6d87d10 (patch) | |
tree | b52d0c8a3414426777b8847270a329f540b22018 | |
parent | 7afabd97eccdb4ca8d9101b04b2263957baef1e8 (diff) |
try to fix bug reported by dev console
-rw-r--r-- | main/build.gradle | 4 | ||||
-rw-r--r-- | main/openvpn/config-version.h | 2 | ||||
-rw-r--r-- | main/src/main/java/de/blinkt/openvpn/fragments/LogFragment.java | 22 |
3 files changed, 15 insertions, 13 deletions
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)); + } } }); } |