<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2016 Álinson Santos Xavier <isoron@gmail.com>
  ~
  ~ This file is part of Loop Habit Tracker.
  ~
  ~ Loop Habit Tracker is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by the
  ~ Free Software Foundation, either version 3 of the License, or (at your
  ~ option) any later version.
  ~
  ~ Loop Habit Tracker is distributed in the hope that it will be useful, but
  ~ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  ~ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  ~ more details.
  ~
  ~ You should have received a copy of the GNU General Public License along
  ~ with this program. If not, see <http://www.gnu.org/licenses/>.
  -->

<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">

    <PreferenceCategory
        android:key="pref_key_behaviour_settings"
        android:title="@string/behavior">

        <CheckBoxPreference
            android:defaultValue="false"
            android:key="pref_short_toggle"
            android:summary="@string/pref_toggle_description"
            android:title="@string/pref_toggle_title"/>

        <ListPreference
            android:defaultValue="@string/snooze_interval_default"
            android:dialogTitle="@string/snooze_interval"
            android:entries="@array/snooze_interval_names"
            android:entryValues="@array/snooze_interval_values"
            android:key="pref_snooze_interval"
            android:title="@string/pref_snooze_interval_title"/>

    </PreferenceCategory>

    <Preference android:title="@string/about">
        <intent
            android:action="android.intent.action.VIEW"
            android:targetClass="org.isoron.uhabits.AboutActivity"
            android:targetPackage="org.isoron.uhabits"/>
    </Preference>

</PreferenceScreen>