diff options
author | Arne Schwabe <arne@rfc2549.org> | 2012-09-25 21:44:41 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2012-09-25 21:44:41 +0200 |
commit | 61e4a83c6df1abfd8ad6657d52dc57527d6038ba (patch) | |
tree | ba420ceca9abe91c155a0bee08732e2b5c7a46d9 /src/de/blinkt | |
parent | ec186bd20401f85b7d7f06678f9ce1e47904c25d (diff) |
make the context getting a bit more clean ,should not change anything but never know (NPE in market console)
Diffstat (limited to 'src/de/blinkt')
-rw-r--r-- | src/de/blinkt/openvpn/LogWindow.java | 8 |
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(); |