diff options
Diffstat (limited to 'java/com/android/incallui')
-rw-r--r-- | java/com/android/incallui/call/DialerCall.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/java/com/android/incallui/call/DialerCall.java b/java/com/android/incallui/call/DialerCall.java index 9a7c6530f..4815a6e41 100644 --- a/java/com/android/incallui/call/DialerCall.java +++ b/java/com/android/incallui/call/DialerCall.java @@ -47,6 +47,7 @@ import android.telecom.StatusHints; import android.telecom.TelecomManager; import android.telecom.VideoProfile; import android.text.TextUtils; +import android.widget.Toast; import com.android.contacts.common.compat.CallCompat; import com.android.contacts.common.compat.telecom.TelecomManagerCompat; import com.android.dialer.assisteddialing.ConcreteCreator; @@ -142,6 +143,7 @@ public class DialerCall implements VideoTechListener, StateChangedListener, Capa private int state = State.INVALID; private DisconnectCause disconnectCause; + private boolean hasShownLteToWiFiHandoverToast; private boolean hasShownWiFiToLteHandoverToast; private boolean doNotShowDialogForHandoffToWifiFailure; @@ -309,6 +311,9 @@ public class DialerCall implements VideoTechListener, StateChangedListener, Capa case TelephonyManagerCompat.EVENT_HANDOVER_VIDEO_FROM_WIFI_TO_LTE: notifyWiFiToLteHandover(); break; + case TelephonyManagerCompat.EVENT_HANDOVER_VIDEO_FROM_LTE_TO_WIFI: + onLteToWifiHandover(); + break; case TelephonyManagerCompat.EVENT_HANDOVER_TO_WIFI_FAILED: notifyHandoverToWifiFailed(); break; @@ -448,6 +453,17 @@ public class DialerCall implements VideoTechListener, StateChangedListener, Capa cannedTextResponsesLoadedListeners.remove(listener); } + private void onLteToWifiHandover() { + LogUtil.enterBlock("DialerCall.onLteToWifiHandover"); + if (hasShownLteToWiFiHandoverToast) { + return; + } + + Toast.makeText(context, R.string.video_call_lte_to_wifi_handover_toast, Toast.LENGTH_LONG) + .show(); + hasShownLteToWiFiHandoverToast = true; + } + public void notifyWiFiToLteHandover() { LogUtil.i("DialerCall.notifyWiFiToLteHandover", ""); for (DialerCallListener listener : listeners) { |