Skip to content

Commit 5d62532

Browse files
emancebofirebird11
authored andcommitted
Add an option in the InCall UI to perform call recording
Change-Id: Icc86a0a7ae9d2493a837d02f321df7cb1387cded Conflicts: res/values/dimens.xml
1 parent a452695 commit 5d62532

18 files changed

Lines changed: 576 additions & 139 deletions
3.06 KB
Loading
3.1 KB
Loading
2.32 KB
Loading
2.34 KB
Loading
2.76 KB
Loading
2.95 KB
Loading

res/layout/call_button_fragment.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,14 @@
197197
android:contentDescription="@string/onscreenBlacklistText"
198198
/>
199199

200+
<com.android.incallui.CallRecordingButton
201+
android:id="@+id/recordButton"
202+
style="@style/InCallButton"
203+
android:src="@drawable/ic_record_holo_dark"
204+
android:contentDescription="@string/onscreenRecordText"
205+
android:visibility="gone"
206+
/>
207+
200208
<!-- Separator between 4th (or 5th) button and right padding -->
201209
<View style="@style/VerticalSeparator" />
202210

res/layout/primary_call_info.xml

Lines changed: 152 additions & 136 deletions
Large diffs are not rendered by default.

res/values/cm_strings.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
<!-- Text for the onscreen "Blacklist" button -->
2828
<string name="onscreenBlacklistText">Blacklist</string>
2929

30+
<!-- Text for in call recording action -->
31+
<string name="onscreenRecordText">Start/stop recording</string>
32+
<string name="call_recording_failed_message">Failed to start call recording</string>
33+
3034
<!-- Blacklist confirmation dialog -->
3135
<string name="blacklist_dialog_title">Add to blacklist</string>
3236
<string name="blacklist_dialog_message">Future calls from <xliff:g id="number">%s</xliff:g> will be blocked</string>

res/values/colors.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,4 +65,8 @@
6565

6666
<!-- Translucent shadow color -->
6767
<color name="translucent_shadow">#33999999</color>
68+
69+
<!-- Color of recording progrss timer -->
70+
<color name="recording_progress_text_color">#f22121</color>
71+
<color name="recording_progress_background">#40000000</color>
6872
</resources>

0 commit comments

Comments
 (0)