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

Commit 22335cd4 authored by linuxxxxx's avatar linuxxxxx Committed by Gerrit Code Review
Browse files

[2/2] Dialer: SmartMute



Mute the incoming call by flipping the phone

Change-Id: I2009bc7b4d0d1b23f76b232e156ea0fa35e3ad5b
Signed-off-by: default avatarlinuxxxxx <joey@cyanogenmoditalia.it>
parent c9b91d0c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -126,7 +126,10 @@
    <string name="stop_call_playback">Stop</string>
    <string name="call_playback_error_message">Failed to play recording</string>

    <!-- Smart Call -->
    <!-- Sensor options -->
    <string name="sensors_category_title">Sensor options</string>
    <string name="smart_mute_title">Smart mute</string>
    <string name="smart_mute_summary">Mute the incoming call by flipping the device</string>
    <string name="smart_dialer_title">Smart call</string>
    <string name="smart_dialer_summary">Automatically call the contact by moving your device to your ear</string>

+19 −6
Original line number Diff line number Diff line
@@ -97,6 +97,25 @@
            android:persistent="false" />
    </PreferenceCategory>

    <PreferenceCategory
        android:key="dialer_general_sensors_category_key"
        android:title="@string/sensors_category_title"
        android:persistent="false">

        <SwitchPreference
            android:key="button_smart_dialer"
            android:title="@string/smart_dialer_title"
            android:summary="@string/smart_dialer_summary"
            android:defaultValue="false" />

        <SwitchPreference
            android:key="button_smart_mute"
            android:title="@string/smart_mute_title"
            android:summary="@string/smart_mute_summary"
            android:defaultValue="false" />

    </PreferenceCategory>

    <PreferenceCategory
        android:key="dialer_general_other_settings_category_key"
        android:title="@string/other_settings_title"
@@ -107,12 +126,6 @@
            android:title="@string/detailed_incall_info_title"
            android:summary="@string/detailed_incall_info_summary" />

        <SwitchPreference
            android:key="button_smart_dialer"
            android:title="@string/smart_dialer_title"
            android:summary="@string/smart_dialer_summary"
            android:defaultValue="false" />

        <PreferenceScreen
            android:key="button_respond_via_sms_key"
            android:title="@string/respond_via_sms_setting_title"
+1 −0
Original line number Diff line number Diff line
@@ -55,6 +55,7 @@ public class GeneralSettingsFragment extends PreferenceFragment
    private static final String BUTTON_SPEED_DIAL_KEY  = "speed_dial_settings";
    private static final String BUTTON_T9_SEARCH_INPUT_LOCALE = "button_t9_search_input";
    public static final String BUTTON_SMART_DIALER_KEY = "button_smart_dialer";
    public static final String BUTTON_SMART_MUTE_KEY = "button_smart_mute";

    private static final int MSG_UPDATE_RINGTONE_SUMMARY = 1;