summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-11-19 00:22:56 +0100
committerArne Schwabe <arne@rfc2549.org>2013-11-19 00:22:56 +0100
commit42f552b5eeb209ba32282c87f61414bcaf85cf23 (patch)
tree1b16b59c3177e4b287e0a4bdc2e93847b0d02323
parent8ced9f378613425efb9949196e967dbe2f03a63a (diff)
small bug fixes
-rw-r--r--icsopenvpn.iml32
-rw-r--r--res/layout/faq.xml4
-rw-r--r--src/de/blinkt/openvpn/VpnProfile.java2
-rw-r--r--src/de/blinkt/openvpn/fragments/LogFragment.java18
-rw-r--r--vpndialogxposed/vpndialogxposed.iml3
5 files changed, 33 insertions, 26 deletions
diff --git a/icsopenvpn.iml b/icsopenvpn.iml
index a17c66df..5c38a169 100644
--- a/icsopenvpn.iml
+++ b/icsopenvpn.iml
@@ -23,27 +23,27 @@
<output url="file://$MODULE_DIR$/build/classes/debug" />
<exclude-output />
<content url="file://$MODULE_DIR$">
- <sourceFolder url="file://$MODULE_DIR$/build/source/r/debug" isTestSource="false" />
- <sourceFolder url="file://$MODULE_DIR$/build/source/aidl/debug" isTestSource="false" />
- <sourceFolder url="file://$MODULE_DIR$/build/source/rs/debug" isTestSource="false" />
- <sourceFolder url="file://$MODULE_DIR$/build/source/buildConfig/debug" isTestSource="false" />
- <sourceFolder url="file://$MODULE_DIR$/build/res/rs/debug" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/build/source/r/debug" isTestSource="false" generated="true" />
+ <sourceFolder url="file://$MODULE_DIR$/build/source/aidl/debug" isTestSource="false" generated="true" />
+ <sourceFolder url="file://$MODULE_DIR$/build/source/rs/debug" isTestSource="false" generated="true" />
+ <sourceFolder url="file://$MODULE_DIR$/build/source/buildConfig/debug" isTestSource="false" generated="true" />
+ <sourceFolder url="file://$MODULE_DIR$/build/res/rs/debug" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/build/source/r/test" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/build/source/aidl/test" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/build/source/rs/test" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/build/source/buildConfig/test" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/build/res/rs/test" isTestSource="true" />
- <sourceFolder url="file://$MODULE_DIR$/src/debug/aidl" isTestSource="false" />
- <sourceFolder url="file://$MODULE_DIR$/src/debug/assets" isTestSource="false" />
- <sourceFolder url="file://$MODULE_DIR$/src/debug/java" isTestSource="false" />
- <sourceFolder url="file://$MODULE_DIR$/src/debug/jni" isTestSource="false" />
- <sourceFolder url="file://$MODULE_DIR$/src/debug/rs" isTestSource="false" />
- <sourceFolder url="file://$MODULE_DIR$/src/debug/res" isTestSource="false" />
- <sourceFolder url="file://$MODULE_DIR$/src/debug/resources" isTestSource="false" />
- <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
- <sourceFolder url="file://$MODULE_DIR$/assets" isTestSource="false" />
- <sourceFolder url="file://$MODULE_DIR$/src/main/jni" isTestSource="false" />
- <sourceFolder url="file://$MODULE_DIR$/res" isTestSource="false" />
+ <sourceFolder url="file://$MODULE_DIR$/src/debug/aidl" isTestSource="false" generated="true" />
+ <sourceFolder url="file://$MODULE_DIR$/src/debug/assets" isTestSource="false" generated="true" />
+ <sourceFolder url="file://$MODULE_DIR$/src/debug/java" isTestSource="false" generated="true" />
+ <sourceFolder url="file://$MODULE_DIR$/src/debug/jni" isTestSource="false" generated="true" />
+ <sourceFolder url="file://$MODULE_DIR$/src/debug/rs" isTestSource="false" generated="true" />
+ <sourceFolder url="file://$MODULE_DIR$/src/debug/res" isTestSource="false" generated="true" />
+ <sourceFolder url="file://$MODULE_DIR$/src/debug/resources" isTestSource="false" generated="true" />
+ <sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" generated="true" />
+ <sourceFolder url="file://$MODULE_DIR$/assets" isTestSource="false" generated="true" />
+ <sourceFolder url="file://$MODULE_DIR$/src/main/jni" isTestSource="false" generated="true" />
+ <sourceFolder url="file://$MODULE_DIR$/res" isTestSource="false" generated="true" />
<sourceFolder url="file://$MODULE_DIR$/src/instrumentTest/aidl" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/instrumentTest/assets" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/instrumentTest/java" isTestSource="true" />
diff --git a/res/layout/faq.xml b/res/layout/faq.xml
index 792ed1d4..9d11e786 100644
--- a/res/layout/faq.xml
+++ b/res/layout/faq.xml
@@ -18,6 +18,7 @@
<TextView
android:id="@+id/faq_howto"
style="@style/faqitem"
+ tools:text="@string/faq_howto"
tools:ignore="SelectableText" />
<TextView
@@ -25,6 +26,7 @@
android:text="@string/faq_vpndialog43_title" />
<TextView
+ tools:text="@string/faq_vpndialog43"
android:id="@+id/faq_vpndialog43"
style="@style/faqitem" />
@@ -50,6 +52,7 @@
<TextView
android:id="@+id/baterry_consumption"
+ tools:text="@string/baterry_consumption"
style="@style/faqitem"
tools:ignore="SelectableText" />
@@ -68,6 +71,7 @@
<TextView
android:id="@+id/faq_tethering"
style="@style/faqitem"
+ tools:text="@string/faq_tethering"
tools:ignore="SelectableText" />
<TextView
diff --git a/src/de/blinkt/openvpn/VpnProfile.java b/src/de/blinkt/openvpn/VpnProfile.java
index 7b5faae3..79c94779 100644
--- a/src/de/blinkt/openvpn/VpnProfile.java
+++ b/src/de/blinkt/openvpn/VpnProfile.java
@@ -647,7 +647,7 @@ public class VpnProfile implements Serializable {
} catch (AssertionError e) {
if (tries ==0)
return null;
- Toast.makeText(context, String.format("Failure getting Keystore Keys (%s), retrying",e.getLocalizedMessage()),Toast.LENGTH_LONG).show();
+ VpnStatus.logError(String.format("Failure getting Keystore Keys (%s), retrying",e.getLocalizedMessage()));
try {
Thread.sleep(3000);
} catch (InterruptedException e1) {
diff --git a/src/de/blinkt/openvpn/fragments/LogFragment.java b/src/de/blinkt/openvpn/fragments/LogFragment.java
index 750b5703..721f0707 100644
--- a/src/de/blinkt/openvpn/fragments/LogFragment.java
+++ b/src/de/blinkt/openvpn/fragments/LogFragment.java
@@ -103,14 +103,16 @@ public class LogFragment extends ListFragment implements StateListener, SeekBar.
final String down = String.format("%2$s/s %1$s", humanReadableByteCount(in, false), humanReadableByteCount(diffIn / OpenVPNManagement.mBytecountInterval, true));
final String up = String.format("%2$s/s %1$s", humanReadableByteCount(out, false), humanReadableByteCount(diffOut / OpenVPNManagement.mBytecountInterval, true));
- if(mUpStatus!=null && mDownStatus!=null) {
- getActivity().runOnUiThread(new Runnable() {
- @Override
- public void run() {
- mUpStatus.setText(up);
- mDownStatus.setText(down);
- }
- });
+ if (mUpStatus != null && mDownStatus != null) {
+ if (getActivity() != null) {
+ getActivity().runOnUiThread(new Runnable() {
+ @Override
+ public void run() {
+ mUpStatus.setText(up);
+ mDownStatus.setText(down);
+ }
+ });
+ }
}
}
diff --git a/vpndialogxposed/vpndialogxposed.iml b/vpndialogxposed/vpndialogxposed.iml
index 7b46333d..0b113ffc 100644
--- a/vpndialogxposed/vpndialogxposed.iml
+++ b/vpndialogxposed/vpndialogxposed.iml
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="false">
- <output url="file://$MODULE_DIR$/build/classes/debug" />
+ <output url="file://$MODULE_DIR$/build/classes/main" />
+ <output-test url="file://$MODULE_DIR$/build/classes/test" />
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/build/source/r/debug" isTestSource="false" />