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

Commit 9cf4db0d authored by Danny Baumann's avatar Danny Baumann
Browse files

Re-add call recording feature.

Change-Id: I47e9c49db56c75e5c5f491d2ef923039f7a7f519
parent 8f517b2c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ res_dirs := res \
    $(contacts_common_dir)/res \
    $(phone_common_dir)/res

LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs))
LOCAL_SRC_FILES := $(call all-java-files-under, $(src_dirs)) $(call all-Iaidl-files-under, $(src_dirs))
LOCAL_SRC_FILES += ../../providers/ContactsProvider/src/com/android/providers/contacts/NameSplitter.java \
                   ../../providers/ContactsProvider/src/com/android/providers/contacts/HanziToPinyin.java \
                   ../../providers/ContactsProvider/src/com/android/providers/contacts/util/NeededForTesting.java
+6 −0
Original line number Diff line number Diff line
@@ -62,6 +62,8 @@
     start requests, even if they happen immediately after the user
     presses home. -->
    <uses-permission android:name="android.permission.STOP_APP_SWITCHES" />
    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    <uses-permission android:name="android.permission.CAPTURE_AUDIO_OUTPUT" />
    <uses-permission android:name="cyanogenmod.permission.WRITE_SETTINGS" />

    <application
@@ -321,6 +323,10 @@
                  android:screenOrientation="nosensor" >
        </activity>

        <service android:name="com.android.services.callrecorder.CallRecorderService"
                 android:process="com.android.incallui">
        </service>

        <!-- BroadcastReceiver for receiving Intents from Notification mechanism. -->
        <receiver android:name="com.android.incallui.NotificationBroadcastReceiver"
                  android:exported="false" />
+26 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2016 The CyanogenMod 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.
-->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="48dp"
    android:height="48dp"
    android:viewportWidth="48"
    android:viewportHeight="48">

    <path
        android:fillColor="@color/call_log_icon_tint"
        android:pathData="M 21,30.75 L 30,24 21,17.25 21,30.75 Z M 24,9 C 15.7125,9 9,15.7125 9,24 9,32.2875 15.7125,39 24,39 32.2875,39 39,32.2875 39,24 39,15.7125 32.2875,9 24,9 Z m 0,27 c -6.615,0 -12,-5.385 -12,-12 0,-6.615 5.385,-12 12,-12 6.615,0 12,5.385 12,12 0,6.615 -5.385,12 -12,12 z" />
</vector>
+26 −2
Original line number Diff line number Diff line
@@ -14,7 +14,7 @@
     limitations under the License.
-->

<LinearLayout
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
@@ -23,9 +23,24 @@
    android:paddingStart="@dimen/call_detail_horizontal_margin"
    android:paddingEnd="@dimen/call_log_outer_margin"
    android:orientation="vertical" >

    <ImageView
        android:id="@+id/recording_playback_button"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentEnd="true"
        android:layout_centerVertical="true"
        android:src="@drawable/recording_playback_button"
        android:background="?android:attr/selectableItemBackgroundBorderless"
        android:visibility="gone" />

    <LinearLayout
        android:id="@+id/call_type_container"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_alignParentStart="true"
        android:layout_toStartOf="@id/recording_playback_button"
        android:orientation="horizontal" >
        <view
            class="com.android.dialer.calllog.CallTypeIconsView"
@@ -41,16 +56,25 @@
            android:textColor="?attr/call_log_primary_text_color"
            android:textSize="@dimen/call_log_primary_text_size" />
    </LinearLayout>

    <TextView
        android:id="@+id/date"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/call_type_container"
        android:layout_alignParentStart="true"
        android:layout_toStartOf="@id/recording_playback_button"
        android:textColor="?attr/call_log_secondary_text_color"
        android:textSize="@dimen/call_log_secondary_text_size" />

    <TextView
        android:id="@+id/duration"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_below="@id/date"
        android:layout_alignParentStart="true"
        android:layout_toStartOf="@id/recording_playback_button"
        android:textColor="?attr/call_log_secondary_text_color"
        android:textSize="@dimen/call_log_secondary_text_size" />
</LinearLayout>

</RelativeLayout>
+19 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<!--
     Copyright (C) 2014 The CyanogenMod 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.
-->
<resources>
    <bool name="call_recording_enabled">false</bool>
</resources>
Loading