diff options
author | Tyler Gunn <tgunn@google.com> | 2014-08-27 20:37:32 -0700 |
---|---|---|
committer | Tyler Gunn <tgunn@google.com> | 2014-08-27 20:37:32 -0700 |
commit | 625eb0b8f6e52e7ac1b5a499c5e1964812911913 (patch) | |
tree | fee24b110c9e669a781bfa1fd17e47ee22f5ed11 /src/com/android/services/telephony/CdmaConnection.java | |
parent | 297d540b8f2294245f4ecc69a9c2dc9a02b689ea (diff) | |
download | android_packages_services_Telephony-625eb0b8f6e52e7ac1b5a499c5e1964812911913.tar.gz android_packages_services_Telephony-625eb0b8f6e52e7ac1b5a499c5e1964812911913.tar.bz2 android_packages_services_Telephony-625eb0b8f6e52e7ac1b5a499c5e1964812911913.zip |
Support CDMA emergency callback. (1/2)
1. Update emergency callback mode notification icon and update creation of
the notification to use a builder.
2. For CDMA calls, if phone is in ECM mode, disable mute in the
Connection PhoneCapabilities.
Bug: 16182748
Change-Id: I698eb7d377346467fc4b87a0bec53d89f96797b1
Diffstat (limited to 'src/com/android/services/telephony/CdmaConnection.java')
-rw-r--r-- | src/com/android/services/telephony/CdmaConnection.java | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/com/android/services/telephony/CdmaConnection.java b/src/com/android/services/telephony/CdmaConnection.java index f13676a11..67104b59f 100644 --- a/src/com/android/services/telephony/CdmaConnection.java +++ b/src/com/android/services/telephony/CdmaConnection.java @@ -24,8 +24,15 @@ import com.android.internal.telephony.Connection; * Manages a single phone call handled by CDMA. */ final class CdmaConnection extends TelephonyConnection { - CdmaConnection(Connection connection) { + + /** + * {@code True} if the CDMA connection should allow mute. + */ + private final boolean mAllowMute; + + CdmaConnection(Connection connection, boolean allowMute) { super(connection); + mAllowMute = allowMute; } /** {@inheritDoc} */ @@ -49,7 +56,10 @@ final class CdmaConnection extends TelephonyConnection { @Override protected int buildCallCapabilities() { - int capabilities = PhoneCapabilities.MUTE; + int capabilities = 0; + if (mAllowMute) { + capabilities = PhoneCapabilities.MUTE; + } return capabilities; } } |