Merge "Add constructor for DisconnectCause that does not require a tone." into lmp-dev
This commit is contained in:
@@ -28170,6 +28170,7 @@ package android.telecom {
|
||||
public final class DisconnectCause implements android.os.Parcelable {
|
||||
ctor public DisconnectCause(int);
|
||||
ctor public DisconnectCause(int, java.lang.String);
|
||||
ctor public DisconnectCause(int, java.lang.CharSequence, java.lang.CharSequence, java.lang.String);
|
||||
ctor public DisconnectCause(int, java.lang.CharSequence, java.lang.CharSequence, java.lang.String, int);
|
||||
method public int describeContents();
|
||||
method public int getCode();
|
||||
|
||||
@@ -161,7 +161,7 @@ public final class Call {
|
||||
|
||||
/**
|
||||
* @return For a {@link #STATE_DISCONNECTED} {@code Call}, the disconnect cause expressed
|
||||
* by {@link android.telecomm.DisconnectCause}.
|
||||
* by {@link android.telecom.DisconnectCause}.
|
||||
*/
|
||||
public DisconnectCause getDisconnectCause() {
|
||||
return mDisconnectCause;
|
||||
|
||||
@@ -83,6 +83,17 @@ public final class DisconnectCause implements Parcelable {
|
||||
this(code, null, null, reason, ToneGenerator.TONE_UNKNOWN);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new DisconnectCause.
|
||||
* @param label The localized label to show to the user to explain the disconnect.
|
||||
* @param code The code for the disconnect cause.
|
||||
* @param description The localized description to show to the user to explain the disconnect.
|
||||
* @param reason The reason for the disconnect.
|
||||
*/
|
||||
public DisconnectCause(int code, CharSequence label, CharSequence description, String reason) {
|
||||
this(code, label, description, reason, ToneGenerator.TONE_UNKNOWN);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new DisconnectCause.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user