From 9d8104e15c21294a21a421a02303c9586f823e96 Mon Sep 17 00:00:00 2001 From: mgeier63 Date: Wed, 26 Aug 2015 11:13:38 +0200 Subject: initial mod --- .../openintents/openpgp/util/OpenPgpServiceConnection.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'openpgp-api/src/main/java/org/openintents/openpgp/util/OpenPgpServiceConnection.java') diff --git a/openpgp-api/src/main/java/org/openintents/openpgp/util/OpenPgpServiceConnection.java b/openpgp-api/src/main/java/org/openintents/openpgp/util/OpenPgpServiceConnection.java index bbc8645..3fee60d 100644 --- a/openpgp-api/src/main/java/org/openintents/openpgp/util/OpenPgpServiceConnection.java +++ b/openpgp-api/src/main/java/org/openintents/openpgp/util/OpenPgpServiceConnection.java @@ -22,20 +22,20 @@ import android.content.Intent; import android.content.ServiceConnection; import android.os.IBinder; -import org.openintents.openpgp.IOpenPgpService; +import org.openintents.openpgp.IOpenPgpService2; public class OpenPgpServiceConnection { // callback interface public interface OnBound { - public void onBound(IOpenPgpService service); + public void onBound(IOpenPgpService2 service); public void onError(Exception e); } private Context mApplicationContext; - private IOpenPgpService mService; + private IOpenPgpService2 mService; private String mProviderPackageName; private OnBound mOnBoundListener; @@ -66,7 +66,7 @@ public class OpenPgpServiceConnection { this.mOnBoundListener = onBoundListener; } - public IOpenPgpService getService() { + public IOpenPgpService2 getService() { return mService; } @@ -76,7 +76,7 @@ public class OpenPgpServiceConnection { private ServiceConnection mServiceConnection = new ServiceConnection() { public void onServiceConnected(ComponentName name, IBinder service) { - mService = IOpenPgpService.Stub.asInterface(service); + mService = IOpenPgpService2.Stub.asInterface(service); if (mOnBoundListener != null) { mOnBoundListener.onBound(mService); } @@ -96,7 +96,7 @@ public class OpenPgpServiceConnection { // if not already bound... if (mService == null) { try { - Intent serviceIntent = new Intent(OpenPgpApi.SERVICE_INTENT); + Intent serviceIntent = new Intent(OpenPgpApi.SERVICE_INTENT_2); // NOTE: setPackage is very important to restrict the intent to this provider only! serviceIntent.setPackage(mProviderPackageName); boolean connect = mApplicationContext.bindService(serviceIntent, mServiceConnection, -- cgit v1.2.3