summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-09-25 21:44:41 +0200
committerArne Schwabe <arne@rfc2549.org>2012-09-25 21:44:41 +0200
commit67e825cb748c0e7db05c99ee7c6b3ed0fb32cd68 (patch)
tree2c6cc83c01b524154a95cdbebfdab57f81a62df8 /src
parentaa3057b81047ddea9f3649049f5d32a24ea178cc (diff)
make the context getting a bit more clean ,should not change anything but never know (NPE in market console)
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();