Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6ae7a91 authored by wangqi's avatar wangqi Committed by android-build-merger
Browse files

Merge "Fix full screen issue when switching between RTT and voice call." am:...

Merge "Fix full screen issue when switching between RTT and voice call." am: 4bafd2b9 am: 385cb312
am: f1e4d538

Change-Id: I6073e4ac09fc8736aae246d31211ac51ea046685
parents 5bab8e9b f1e4d538
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -22,9 +22,6 @@
    android:layout_height="match_parent">

  <RelativeLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:clipChildren="false"
+9 −1
Original line number Diff line number Diff line
@@ -152,6 +152,11 @@ public class RttChatFragment extends Fragment
  public View onCreateView(
      LayoutInflater inflater, @Nullable ViewGroup container, Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.frag_rtt_chat, container, false);
    view.setSystemUiVisibility(
        View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
            | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
            | View.SYSTEM_UI_FLAG_LAYOUT_STABLE
            | View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR);
    editText = view.findViewById(R.id.rtt_chat_input);
    editText.setOnEditorActionListener(this);
    editText.addTextChangedListener(this);
@@ -278,11 +283,14 @@ public class RttChatFragment extends Fragment
    Window window = getActivity().getWindow();
    window.setStatusBarColor(activity.getColor(R.color.rtt_status_bar_color));
    window.setNavigationBarColor(activity.getColor(R.color.rtt_navigation_bar_color));
    window.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR);
  }

  @Override
  public void onRttScreenStop() {
    Activity activity = getActivity();
    Window window = getActivity().getWindow();
    window.setStatusBarColor(activity.getColor(android.R.color.transparent));
    window.setNavigationBarColor(activity.getColor(android.R.color.transparent));
    rttCallScreenDelegate.onRttCallScreenUiUnready();
  }

+2 −1
Original line number Diff line number Diff line
@@ -16,7 +16,8 @@
  -->
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    android:layout_height="match_parent"
    android:fitsSystemWindows="true">

  <include layout="@layout/rtt_banner"/>