diff options
-rw-r--r-- | main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java | 2 | ||||
-rw-r--r-- | remoteExample/src/main/java/de/blinkt/openvpn/remote/MainFragment.java | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java b/main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java index d958bf5f..91b6efcd 100644 --- a/main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java +++ b/main/src/main/java/de/blinkt/openvpn/activities/ConfigConverter.java @@ -536,10 +536,8 @@ public class ConfigConverter extends Activity implements FileSelectCallback { if (data!=null) cursor = getContentResolver().query(data, null, null, null, null); - try { - if (cursor!=null && cursor.moveToFirst()) { int columnIndex = cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME); diff --git a/remoteExample/src/main/java/de/blinkt/openvpn/remote/MainFragment.java b/remoteExample/src/main/java/de/blinkt/openvpn/remote/MainFragment.java index 0bb634aa..4f6481b0 100644 --- a/remoteExample/src/main/java/de/blinkt/openvpn/remote/MainFragment.java +++ b/remoteExample/src/main/java/de/blinkt/openvpn/remote/MainFragment.java @@ -159,8 +159,11 @@ public class MainFragment extends Fragment implements View.OnClickListener, Hand private String mStartUUID=null; private void bindService() { - getActivity().bindService(new Intent(IOpenVPNAPIService.class.getName()), - mConnection, Context.BIND_AUTO_CREATE); + + Intent icsopenvpnService = new Intent(IOpenVPNAPIService.class.getName()); + icsopenvpnService.setPackage("de.blinkt.openvpn"); + + getActivity().bindService(icsopenvpnService, mConnection, Context.BIND_AUTO_CREATE); } protected void listVPNs() { |