Merge "Return generic Binder on onBind"
am: c6613f7206
Change-Id: Ibc8cce3c63b93820f6bdd842e6a751233240874d
This commit is contained in:
@@ -19,6 +19,7 @@ package android.telephony.ims;
|
|||||||
import android.annotation.SystemApi;
|
import android.annotation.SystemApi;
|
||||||
import android.app.Service;
|
import android.app.Service;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
|
import android.os.Binder;
|
||||||
import android.os.IBinder;
|
import android.os.IBinder;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -30,8 +31,15 @@ import android.os.IBinder;
|
|||||||
@SystemApi
|
@SystemApi
|
||||||
public class ImsServiceBase extends Service {
|
public class ImsServiceBase extends Service {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Binder connection that does nothing but keep the connection between this Service and the
|
||||||
|
* framework active. If this service crashes, the framework will be notified.
|
||||||
|
*/
|
||||||
|
private IBinder mConnection = new Binder();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public IBinder onBind(Intent intent) {
|
public IBinder onBind(Intent intent) {
|
||||||
return null;
|
return mConnection;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user