diff options
-rw-r--r-- | api/current.txt | 1 | ||||
-rw-r--r-- | telecomm/java/android/telecomm/RemoteConnection.java | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/api/current.txt b/api/current.txt index 805ca70..648b900 100644 --- a/api/current.txt +++ b/api/current.txt @@ -27780,6 +27780,7 @@ package android.telecomm { method public void disconnect(); method public int getDisconnectCause(); method public java.lang.String getDisconnectMessage(); + method public int getState(); method public void hold(); method public void playDtmf(char); method public void postDialContinue(boolean); diff --git a/telecomm/java/android/telecomm/RemoteConnection.java b/telecomm/java/android/telecomm/RemoteConnection.java index a159dee..f200bc0 100644 --- a/telecomm/java/android/telecomm/RemoteConnection.java +++ b/telecomm/java/android/telecomm/RemoteConnection.java @@ -43,7 +43,7 @@ public final class RemoteConnection { private final String mConnectionId; private final Set<Listener> mListeners = new HashSet<>(); - private int mState; + private int mState = Connection.State.NEW; private int mDisconnectCause = DisconnectCause.NOT_VALID; private String mDisconnectMessage; private boolean mRequestingRingback; @@ -67,6 +67,10 @@ public final class RemoteConnection { mListeners.remove(listener); } + public int getState() { + return mState; + } + public int getDisconnectCause() { return mDisconnectCause; } |