summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/de/blinkt/openvpn/LogWindow.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/de/blinkt/openvpn/LogWindow.java b/src/de/blinkt/openvpn/LogWindow.java
index ecadd85c..8d228cf1 100644
--- a/src/de/blinkt/openvpn/LogWindow.java
+++ b/src/de/blinkt/openvpn/LogWindow.java
@@ -36,7 +36,7 @@ public class LogWindow extends ListActivity implements StateListener {
private String[] mBconfig=null;
- class LogWindowListAdapter implements ListAdapter,LogListener, Callback {
+ class LogWindowListAdapter implements ListAdapter, LogListener, Callback {
private static final int MESSAGE_NEWLOG = 0;
@@ -64,7 +64,7 @@ public class LogWindow extends ListActivity implements StateListener {
private void initLogBuffer() {
myEntries.clear();
for (LogItem litem : OpenVPN.getlogbuffer()) {
- myEntries.add(litem.getString(getBaseContext()));
+ myEntries.add(litem.getString(getContext()));
}
}
@@ -241,6 +241,10 @@ public class LogWindow extends ListActivity implements StateListener {
}
+ protected Context getContext() {
+ return this;
+ }
+
@Override
public boolean onCreateOptionsMenu(Menu menu) {
MenuInflater inflater = getMenuInflater();