diff options
author | wangqi <wangqi@google.com> | 2018-03-15 10:17:21 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-03-15 10:30:02 -0700 |
commit | c6cbb12dae278b455b1a05e0ee6b0b164e5318c7 (patch) | |
tree | c51392d279bd3554c458be3ecfb89eb5c066fd46 /java/com/android/incallui/rtt/impl/RttChatFragment.java | |
parent | 6b576be4554a219088b3d24f91c6e79819a4ac1b (diff) |
Add audio select menu.
Bug: 67596257
Test: manual
PiperOrigin-RevId: 189204691
Change-Id: I9ecd36ce1c27072dea4ae87beeecd4565bf05378
Diffstat (limited to 'java/com/android/incallui/rtt/impl/RttChatFragment.java')
-rw-r--r-- | java/com/android/incallui/rtt/impl/RttChatFragment.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/java/com/android/incallui/rtt/impl/RttChatFragment.java b/java/com/android/incallui/rtt/impl/RttChatFragment.java index c6eef9ca2..dd55ccff7 100644 --- a/java/com/android/incallui/rtt/impl/RttChatFragment.java +++ b/java/com/android/incallui/rtt/impl/RttChatFragment.java @@ -48,7 +48,6 @@ import com.android.dialer.common.Assert; import com.android.dialer.common.FragmentUtils; import com.android.dialer.common.LogUtil; import com.android.dialer.common.UiUtil; -import com.android.incallui.audioroute.AudioRouteSelectorDialogFragment; import com.android.incallui.audioroute.AudioRouteSelectorDialogFragment.AudioRouteSelectorPresenter; import com.android.incallui.call.DialerCall.State; import com.android.incallui.hold.OnHoldFragment; @@ -447,8 +446,12 @@ public class RttChatFragment extends Fragment @Override public void showAudioRouteSelector() { - AudioRouteSelectorDialogFragment.newInstance(inCallButtonUiDelegate.getCurrentAudioState()) - .show(getChildFragmentManager(), null); + AudioSelectMenu audioSelectMenu = + new AudioSelectMenu( + getContext(), + inCallButtonUiDelegate, + () -> overflowMenu.showAtLocation(getView(), Gravity.TOP | Gravity.RIGHT, 0, 0)); + audioSelectMenu.showAtLocation(getView(), Gravity.TOP | Gravity.RIGHT, 0, 0); } @Override |