summaryrefslogtreecommitdiffstats
path: root/telecomm/java
diff options
context:
space:
mode:
Diffstat (limited to 'telecomm/java')
-rw-r--r--telecomm/java/android/telecom/Connection.java6
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");
+ }
}
}