]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/xml/pref_notification.xml
add license boilerplates for authored content
[mobile-ledger.git] / app / src / main / res / xml / pref_notification.xml
1 <!--
2   ~ Copyright © 2018 Damyan Ivanov.
3   ~ This file is part of Mobile-Ledger.
4   ~ Mobile-Ledger is free software: you can distribute it and/or modify it
5   ~ under the term of the GNU General Public License as published by
6   ~ the Free Software Foundation, either version 3 of the License, or
7   ~ (at your opinion), any later version.
8   ~
9   ~ Mobile-Ledger is distributed in the hope that it will be useful,
10   ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
11   ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12   ~ GNU General Public License terms for details.
13   ~
14   ~ You should have received a copy of the GNU General Public License
15   ~ along with Mobile-Ledger. If not, see <https://www.gnu.org/licenses/>.
16   -->
17
18 <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
19
20     <!-- A 'parent' preference, which enables/disables child preferences (below)
21          when checked/unchecked. -->
22     <SwitchPreference
23         android:defaultValue="true"
24         android:key="notifications_new_message"
25         android:title="@string/pref_title_new_message_notifications" />
26
27     <!-- Allows the user to choose a ringtone in the 'notification' category. -->
28     <!-- NOTE: This preference will be enabled only when the checkbox above is checked. -->
29     <!-- NOTE: RingtonePreference's summary should be set to its value by the activity code. -->
30     <RingtonePreference
31         android:defaultValue="content://settings/system/notification_sound"
32         android:dependency="notifications_new_message"
33         android:key="notifications_new_message_ringtone"
34         android:ringtoneType="notification"
35         android:title="@string/pref_title_ringtone" />
36
37     <!-- NOTE: This preference will be enabled only when the checkbox above is checked. -->
38     <SwitchPreference
39         android:defaultValue="true"
40         android:dependency="notifications_new_message"
41         android:key="notifications_new_message_vibrate"
42         android:title="@string/pref_title_vibrate" />
43
44 </PreferenceScreen>