lizhanwei
2020-07-07 b2c9c057bb1254d34bd5ef96109651becc33e0d9
lib/src/main/java/com/anyun/exam/lib/SvrManager.java
@@ -7,7 +7,6 @@
import android.os.IBinder;
import android.os.RemoteException;
import android.text.TextUtils;
import android.util.Log;
import java.util.LinkedList;
@@ -50,8 +49,8 @@
        @Override
        public void binderDied() {
            MyLog.e(TAG,"IBinder.DeathRecipient binderDied");
            if (remoteInterface != null){
                MyLog.e(TAG,"IBinder.DeathRecipient binderDied remoteInterface != null ,return");
            if (remoteInterface == null){
                MyLog.e(TAG,"IBinder.DeathRecipient binderDied remoteInterface == null ,return");
                return;
            }
            remoteInterface.asBinder().unlinkToDeath(mDeathRecipient,0);
@@ -98,7 +97,7 @@
            try {
                //设置死亡代理
                service.linkToDeath(mDeathRecipient,0);
                MyLog.i("绑定服务onServiceConnected");
                remoteInterface.registListener(RemoteCallback);
            } catch (RemoteException e) {
                e.printStackTrace();
@@ -107,7 +106,7 @@
        @Override
        public void onServiceDisconnected(ComponentName name) {
            MyLog.i("绑定服务失败onServiceDisconnected");
        }