summaryrefslogtreecommitdiff
path: root/java/com/android/incallui/rtt/impl/RttChatActivity.java
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2018-01-09 16:40:28 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-01-09 16:40:28 +0000
commit8c19b0ac8f79eb7f653ee3e07018ca7342f4e190 (patch)
tree92e2a480370fd53fdb210d1035a6c3d666628819 /java/com/android/incallui/rtt/impl/RttChatActivity.java
parent455a7c27d5c5d4c25236d940f088a25a5bf57c2a (diff)
parent517fbff5c15c9270323b4099a39514d2487eec99 (diff)
Merge changes Iddf5ef33,I1b718e30,I0c7386f6,I81069948,I3bec477d, ...
* changes: Update strings for Duo "Set up" and "Invite" buttons Hide emergency calls in the call log Simplifying implementation of the coalescing logic in the new call log. Updating Dialer v16 licenses. Use ContactsContract.PhoneLookup for invalid numbers in Cp2PhoneLookup. Add RTT call chat window. Updated T9 search bolding to include wrapping to the next word. Initial setup of voicemail error messages Automated rollback of changelist 178323108 Add "delete" option in the 3-dot menu of the new call log
Diffstat (limited to 'java/com/android/incallui/rtt/impl/RttChatActivity.java')
-rw-r--r--java/com/android/incallui/rtt/impl/RttChatActivity.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/java/com/android/incallui/rtt/impl/RttChatActivity.java b/java/com/android/incallui/rtt/impl/RttChatActivity.java
new file mode 100644
index 000000000..96056f746
--- /dev/null
+++ b/java/com/android/incallui/rtt/impl/RttChatActivity.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright (C) 2018 The Android Open Source Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License
+ */
+
+package com.android.incallui.rtt.impl;
+
+import android.os.Bundle;
+import android.os.SystemClock;
+import android.support.annotation.Nullable;
+import android.support.v4.app.FragmentActivity;
+import android.view.View;
+
+/** Activity to for RTT chat window. */
+public class RttChatActivity extends FragmentActivity {
+
+ @Override
+ protected void onCreate(@Nullable Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.activity_rtt);
+ getSupportFragmentManager()
+ .beginTransaction()
+ .add(
+ R.id.fragment_rtt,
+ RttChatFragment.newInstance("", "Jane Williamson", SystemClock.elapsedRealtime()))
+ .commit();
+ getWindow().setStatusBarColor(getColor(R.color.rtt_status_bar_color));
+ getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
+ }
+}