diff options
| author | 2017-03-08 19:53:25 +0000 | |
|---|---|---|
| committer | 2017-03-08 19:53:26 +0000 | |
| commit | c6613f72061d17a0b86cd6016aed102b47aeeaca (patch) | |
| tree | d6950de48110d2692840833bc6a413000fa3ce87 | |
| parent | 1bb08c25b8c1657be36b57fbf39aeeee14bc3724 (diff) | |
| parent | d2369792ddd798ba472bc7254c7bb565e2501401 (diff) | |
Merge "Return generic Binder on onBind"
| -rw-r--r-- | telephony/java/android/telephony/ims/ImsServiceBase.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/telephony/java/android/telephony/ims/ImsServiceBase.java b/telephony/java/android/telephony/ims/ImsServiceBase.java index 0878db845347..bb36862ef25f 100644 --- a/telephony/java/android/telephony/ims/ImsServiceBase.java +++ b/telephony/java/android/telephony/ims/ImsServiceBase.java @@ -19,6 +19,7 @@ package android.telephony.ims; import android.annotation.SystemApi; import android.app.Service; import android.content.Intent; +import android.os.Binder; import android.os.IBinder; /** @@ -30,8 +31,15 @@ import android.os.IBinder; @SystemApi 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 public IBinder onBind(Intent intent) { - return null; + return mConnection; } + } |