diff options
author | Tyler Gunn <tgunn@google.com> | 2015-07-15 22:44:48 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-07-15 22:44:48 +0000 |
commit | 102b0ede9371abb333c0a644c026dc667b51b3db (patch) | |
tree | 339fb1fa698fddd9e7322c3ed71271549d96aab4 | |
parent | 394bd1e6bd4392bad9973ffcd808c4b4de2b61ba (diff) | |
parent | 6c0b0d0e83b8d06f40ec814573adc69f362704a9 (diff) | |
download | ims-102b0ede9371abb333c0a644c026dc667b51b3db.tar.gz |
am 6c0b0d0e: Add method and perform cleanups in ImsCall.
* commit '6c0b0d0e83b8d06f40ec814573adc69f362704a9':
Add method and perform cleanups in ImsCall.
-rw-r--r-- | src/java/com/android/ims/ImsCall.java | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/java/com/android/ims/ImsCall.java b/src/java/com/android/ims/ImsCall.java index 9d3ca7d7..30fa1125 100644 --- a/src/java/com/android/ims/ImsCall.java +++ b/src/java/com/android/ims/ImsCall.java @@ -765,6 +765,17 @@ public class ImsCall implements ICall { } /** + * Checks if the call is pending a hold operation. + * + * @return true if the call is pending a hold operation. + */ + public boolean isPendingHold() { + synchronized(mLockObj) { + return (mUpdateRequest == UPDATE_HOLD); + } + } + + /** * Checks if the call is established. * * @return true if the call is established @@ -1601,7 +1612,8 @@ public class ImsCall implements ICall { } } - if (!mConferenceParticipants.isEmpty() && mListener != null) { + if (mConferenceParticipants != null && !mConferenceParticipants.isEmpty() + && mListener != null) { try { mListener.onConferenceParticipantsStateChanged(this, mConferenceParticipants); } catch (Throwable t) { @@ -1885,7 +1897,7 @@ public class ImsCall implements ICall { } catch (Throwable t) { loge("processMergeComplete :: ", t); } - if (!mConferenceParticipants.isEmpty()) { + if (mConferenceParticipants != null && !mConferenceParticipants.isEmpty()) { try { listener.onConferenceParticipantsStateChanged(this, mConferenceParticipants); } catch (Throwable t) { |