diff options
author | Ihab Awad <ihab@google.com> | 2014-12-01 16:23:17 -0800 |
---|---|---|
committer | Jay Shrauner <shrauner@google.com> | 2014-12-02 00:59:09 +0000 |
commit | 90e34e324cbe22f18680809cbc33caf63b320cb4 (patch) | |
tree | 511c0d22099129597928275f2535341c0deec726 /telecomm/java/android/telecom/Connection.java | |
parent | 76de89820c51c4bc288b440a82374b9d6c806244 (diff) | |
download | frameworks_base-90e34e324cbe22f18680809cbc33caf63b320cb4.zip frameworks_base-90e34e324cbe22f18680809cbc33caf63b320cb4.tar.gz frameworks_base-90e34e324cbe22f18680809cbc33caf63b320cb4.tar.bz2 |
Fix immutability bug in http://ag/587241
Bug: 18292176
Change-Id: Icf1f717d76f042d9950a1d8cca9def061de1c1b8
Diffstat (limited to 'telecomm/java/android/telecom/Connection.java')
-rw-r--r-- | telecomm/java/android/telecom/Connection.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/telecomm/java/android/telecom/Connection.java b/telecomm/java/android/telecom/Connection.java index 9ee4e1b..a551aad 100644 --- a/telecomm/java/android/telecom/Connection.java +++ b/telecomm/java/android/telecom/Connection.java @@ -1310,12 +1310,16 @@ public abstract class Connection implements IConferenceable { } private static class FailureSignalingConnection extends Connection { + private boolean mImmutable = false; public FailureSignalingConnection(DisconnectCause disconnectCause) { setDisconnected(disconnectCause); + mImmutable = true; } public void checkImmutable() { - throw new UnsupportedOperationException("Connection is immutable"); + if (mImmutable) { + throw new UnsupportedOperationException("Connection is immutable"); + } } } |