0
0
mirror of https://github.com/schwabe/ics-openvpn.git synced 2024-09-20 03:52:27 +02:00

Do not use an implicit Intent in the remote example

--HG--
extra : rebase_source : a7e9847f15adfa702c2712b5ee8d9878674ba4b6
This commit is contained in:
Arne Schwabe 2014-11-21 17:53:55 +01:00
parent f086819427
commit 4e40f61289
2 changed files with 5 additions and 4 deletions

View File

@ -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);

View File

@ -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() {