<?xml version="1.0" encoding="utf-8"?>
<!--
    Copyright (C) 2016 Nitrogen 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.
-->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
	android:title="@string/notifications_title"
    xmlns:settings="http://schemas.android.com/apk/res/com.android.settings">

    <PreferenceCategory
        android:key="incall_vib_options"
        android:title="@string/incall_vibration_category">

        <com.cherish.settings.preferences.SystemSettingSwitchPreference
            android:key="vibrate_on_connect"
            android:icon="@drawable/ic_vibrate"
            android:title="@string/incall_vibrate_connect_title"
            android:defaultValue="true" />

        <com.cherish.settings.preferences.SystemSettingSwitchPreference
            android:key="vibrate_on_callwaiting"
            android:icon="@drawable/ic_vibrate"
            android:title="@string/incall_vibrate_call_wait_title"
            android:defaultValue="true" />

        <com.cherish.settings.preferences.SystemSettingSwitchPreference
            android:key="vibrate_on_disconnect"
            android:icon="@drawable/ic_vibrate"
            android:title="@string/incall_vibrate_disconnect_title"
            android:defaultValue="true" />

    </PreferenceCategory>
	
	<PreferenceCategory
        android:title="@string/flashlight_category">

        <com.cherish.settings.preferences.SystemSettingListPreference
            android:key="flashlight_on_call"
            android:title="@string/flashlight_on_call_title"
            android:entries="@array/flashlight_on_call_entries"
            android:entryValues="@array/flashlight_on_call_values"
            android:defaultValue="0" />

        <com.cherish.settings.preferences.SystemSettingSwitchPreference
            android:key="flashlight_on_call_ignore_dnd"
            android:title="@string/flashlight_on_call_ignore_dnd_title"
            android:summary="@string/flashlight_on_call_ignore_dnd_summary"
            android:defaultValue="false" />

        <com.cherish.settings.preferences.CustomSeekBarPreference
            android:key="flashlight_on_call_rate"
            android:title="@string/flashlight_on_call_rate_title"
            android:summary="@string/flashlight_on_call_rate_summary"
            android:max="5"
            settings:min="1"
            settings:defaultValue="1"
            settings:units="Hz" />
    </PreferenceCategory>
	
	<PreferenceCategory
           android:key="notifications_general_category"
           android:title="@string/general_category">

        <com.cherish.settings.preferences.SystemSettingSwitchPreference
           android:key="notification_guts_kill_app_button"
           android:title="@string/notification_guts_kill_app_button_title"
           android:summary="@string/notification_guts_kill_app_button_summary"
           android:defaultValue="false" />
    </PreferenceCategory>
	
	<Preference
        android:key="charging_light"
        android:fragment="com.cherish.settings.fragments.BatteryLightSettings"
        android:title="@string/battery_light_settings" />
		
	<!-- Pulse notifications lightning -->
    <com.cherish.settings.preferences.SystemSettingMasterSwitchPreference
        android:key="pulse_ambient_light"
        android:title="@string/pulse_ambient_light_title"
        android:summary="@string/pulse_ambient_light_summary"
        android:fragment="com.cherish.settings.fragments.EdgeLightningSettings"
        android:defaultValue="false" />
		
	<com.cherish.settings.preferences.SystemSettingSwitchPreference
        android:key="pulse_on_new_tracks"
        android:title="@string/pulse_on_new_tracks_title"
        android:summary="@string/pulse_on_new_tracks_summary"
        android:defaultValue="true" />
	
	<PreferenceCategory
        android:key="headsup_notifications_category"
        android:title="@string/headsup_category">

     <Preference
        android:key="heads_up_notifications"
        android:summary="@string/heads_up_notifications_summary"
        android:title="@string/heads_up_notifications"
        android:fragment="com.cherish.settings.fragments.HeadsUpSettings"/>
	
	<com.cherish.settings.preferences.SystemSettingSwitchPreference
        android:key="less_boring_heads_up"
        android:title="@string/less_boring_heads_up_title"
        android:summary="@string/less_boring_heads_up_summary"
        android:defaultValue="false" />

    </PreferenceCategory>
	
	<com.cherish.settings.preferences.SystemSettingSwitchPreference
            android:key="toast_icon"
            android:title="@string/toast_icon_title"
            android:summary="@string/toast_icon_summary"
            android:defaultValue="false" />
	
    
</PreferenceScreen>
