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:
parent
f086819427
commit
4e40f61289
@ -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);
|
||||
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user