Merge "Fix NPE in onDestroy." into lmp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
7632a807f7
@@ -165,11 +165,13 @@ public abstract class InCallService extends Service {
|
||||
|
||||
@Override
|
||||
public boolean onUnbind(Intent intent) {
|
||||
Phone oldPhone = mPhone;
|
||||
mPhone = null;
|
||||
if (mPhone != null) {
|
||||
Phone oldPhone = mPhone;
|
||||
mPhone = null;
|
||||
|
||||
oldPhone.destroy();
|
||||
onPhoneDestroyed(oldPhone);
|
||||
oldPhone.destroy();
|
||||
onPhoneDestroyed(oldPhone);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user