Permalink
Browse files

Replaced checkboxes by switches in preferences for API lvl 14

  • Loading branch information...
schnatterer committed Jun 18, 2015
1 parent 77713b7 commit ab16eb1997dfba743abcd488b6b20de71b5c3ff0
@@ -59,7 +59,7 @@
<!-- Prefrences -->
<string name="preferences_category_releases">Alben</string>
<string name="preferences_title_download_releases_time_period">Zeitspanne</string>
<string name="preferences_summary_download_releases_time_period">Zurückliegende Zeitspanne vom heutigen Datum aus, für die Alben heruntergeladen und angezeigt werden sollen</string>
<string name="preferences_summary_download_releases_time_period">Zurückliegende Zeitspanne vom heutigen Datum aus, für die Alben heruntergeladen und angezeigt werden sollen.</string>
<string-array name="preferences_entries_download_releases_time_period">
<item>Ein Monat</item>
<item>Drei Monate</item>
@@ -71,14 +71,17 @@
<string name="preferences_message_display_all_releases">Wirklich alle ausgeblendeten Alben und Interpreten wieder anzeigen?</string>
<string name="preferences_category_bandwitdth">Datennutzung</string>
<string name="preferences_title_download_only_on_wifi">Nur über WLAN herunterladen</string>
<string name="preferences_summary_download_only_on_wifi">Keine Internetverbindung über Mobilfunknetzwerke verwenden</string>
<string name="preferences_title_download_only_on_wifi">Nur WLAN</string>
<string name="preferences_summary_download_only_on_wifi_on">Keine Internetverbindung über Mobilfunknetzwerke verwenden.</string>
<string name="preferences_summary_download_only_on_wifi_off">Auch Internetverbindung über Mobilfunknetzwerke verwenden.</string>
<string name="preferences_category_notifications">Benachrichtigungen</string>
<string name="preferences_title_is_enabled_notify_new_releases">Neue Alben</string>
<string name="preferences_summary_is_enabled_notify_new_releases">Wenn neue Alben gefunden werden benachrichtigen</string>
<string name="preferences_summary_is_enabled_notify_new_releases_on">Benachrichtigen wenn neue Alben gefunden werden.</string>
<string name="preferences_summary_is_enabled_notify_new_releases_off">Keine Benachrichtigung wenn neue Alben gefunden werden.</string>
<string name="preferences_title_is_enabled_notify_released_today">Erscheinungstermine</string>
<string name="preferences_summary_is_enabled_notify_released_today">Am Tag der Veröffentlichung von Alben benachrichtigen</string>
<string name="preferences_summary_is_enabled_notify_released_today_on">Am Tag der Veröffentlichung von Alben benachrichtigen.</string>
<string name="preferences_summary_is_enabled_notify_released_today_off">Keine Benachrichtigung am Tag der Veröffentlichung von Alben.</string>
<string name="preferences_title_released_today_hour_of_day">Zeit der Benachrichtigung</string>
<string name="preferences_category_about">Über %1$s</string>
@@ -72,14 +72,17 @@
<string name="preferences_message_display_all_releases">Do you really want to reset all hidden albums and artists?</string>
<string name="preferences_category_bandwitdth">Bandwidth usage</string>
<string name="preferences_title_download_only_on_wifi">Download via Wi-Fi only</string>
<string name="preferences_summary_download_only_on_wifi">Don\'t use mobile networks</string>
<string name="preferences_title_download_only_on_wifi">WiFi only</string>
<string name="preferences_summary_download_only_on_wifi_on">Don\'t use mobile networks</string>
<string name="preferences_summary_download_only_on_wifi_off">Also use mobile networks</string>
<string name="preferences_category_notifications">Notifications</string>
<string name="preferences_title_is_enabled_notify_new_releases">New releases</string>
<string name="preferences_summary_is_enabled_notify_new_releases">Notify when new releases are found.</string>
<string name="preferences_summary_is_enabled_notify_new_releases_on">Notify when new releases are found.</string>
<string name="preferences_summary_is_enabled_notify_new_releases_off">No notification when new releases are found.</string>
<string name="preferences_title_is_enabled_notify_released_today">Release dates</string>
<string name="preferences_summary_is_enabled_notify_released_today">Notify on the day releases are published</string>
<string name="preferences_summary_is_enabled_notify_released_today_on">Notify on the day releases are published</string>
<string name="preferences_summary_is_enabled_notify_released_today_off">No Notification on the day releases are published</string>
<string name="preferences_title_released_today_hour_of_day">Time of notification</string>
<string name="preferences_summary_released_hour_of_day">Approximate time of notification that informas of releases dates. Android might delay execution in order to save energy.</string>
@@ -0,0 +1,127 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2013 Johannes Schnatterer
See the NOTICE file distributed with this work for additional
information regarding copyright ownership.
This file is part of nusic-ui-android.
nusic-ui-android 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.
nusic-ui-android 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 nusic-ui-android. If not, see <http://www.gnu.org/licenses/>.
-->
<!-- NOTE that there is another version of this document for APIs < 14! -->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
<PreferenceCategory android:title="@string/preferences_category_releases" >
<ListPreference
android:defaultValue="@string/preferences_default_download_releases_time_period"
android:entries="@array/preferences_entries_download_releases_time_period"
android:entryValues="@array/preferences_entry_values_download_releases_time_period"
android:key="@string/preferences_key_download_releases_time_period"
android:summary="@string/preferences_summary_download_releases_time_period"
android:title="@string/preferences_title_download_releases_time_period" />
<!-- Implemented in activity: Alert Dialog and resetting all hidden releases and artists -->
<Preference
android:key="@string/preferences_key_display_all_releases"
android:summary="@string/preferences_summary_display_all_releases"
android:title="@string/preferences_title_display_all_releases" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/preferences_category_notifications" >
<SwitchPreference
android:defaultValue="@bool/preferences_default_is_enabled_notify_new_releases"
android:key="@string/preferences_key_is_enabled_notify_new_releases"
android:title="@string/preferences_title_is_enabled_notify_new_releases"
android:summaryOn="@string/preferences_summary_is_enabled_notify_new_releases_on"
android:summaryOff="@string/preferences_summary_is_enabled_notify_new_releases_off" />
<SwitchPreference
android:defaultValue="@bool/preferences_default_is_enabled_notify_released_today"
android:key="@string/preferences_key_is_enabled_notify_released_today"
android:title="@string/preferences_title_is_enabled_notify_released_today"
android:summaryOn="@string/preferences_summary_is_enabled_notify_released_today_on"
android:summaryOff="@string/preferences_summary_is_enabled_notify_released_today_off" />
/>
<!-- Implemented in activity: Time Picker dialog and scheduling of the service -->
<Preference
android:key="@string/preferences_key_released_today_hour_of_day"
android:summary="@string/preferences_summary_released_hour_of_day"
android:title="@string/preferences_title_released_today_hour_of_day"
android:dependency="@string/preferences_key_is_enabled_notify_released_today"/>
</PreferenceCategory>
<PreferenceCategory android:title="@string/preferences_category_bandwitdth" >
<SwitchPreference
android:defaultValue="@bool/preferences_default_download_only_on_wifi"
android:key="@string/preferences_key_download_only_on_wifi"
android:title="@string/preferences_title_download_only_on_wifi"
android:summaryOff="@string/preferences_summary_download_only_on_wifi_off"
android:summaryOn="@string/preferences_summary_download_only_on_wifi_on" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/preferences_category_about" android:key="@string/preferences_key_about" >
<!-- Version summary is set in preference activity-->
<Preference
android:key="@string/preferences_key_version"
android:title="@string/preferences_title_version" />
<Preference android:title="@string/preferences_title_changelog"
android:summary="@string/preferences_summary_changelog">
<intent android:targetPackage="info.schnatterer.nusic"
android:targetClass="info.schnatterer.nusic.android.activities.TextAssetActivity">
<extra android:name="@string/extra_activity_title" android:value="Changelog" />
<extra android:name="@string/extra_asset_name" android:value="CHANGELOG.html" />
</intent>
</Preference>
<Preference android:title="@string/preferences_title_licences" android:summary="@string/preferences_summary_licences">
<intent android:targetPackage="info.schnatterer.nusic"
android:targetClass="info.schnatterer.nusic.android.activities.TextAssetActivity">
<extra android:name="@string/extra_activity_title" android:value="@string/preferences_title_licences" />
<extra android:name="@string/extra_asset_name" android:value="NOTICE.html" />
</intent>
</Preference>
<Preference android:title="@string/preferences_title_privacy_policy"
android:summary="@string/preferences_summary_privacy_policy">
<intent android:targetPackage="info.schnatterer.nusic"
android:targetClass="info.schnatterer.nusic.android.activities.TextAssetActivity">
<extra android:name="@string/extra_activity_title" android:value="@string/preferences_title_privacy_policy" />
<extra android:name="@string/extra_asset_name" android:value="privacyPolicy.html" />
</intent>
</Preference>
</PreferenceCategory>
<PreferenceCategory android:title="@string/preferences_category_web" >
<Preference android:title="@string/GooglePlay"
android:summary="@string/preferences_summary_google_play">
<intent
android:action="android.intent.action.VIEW"
android:data="@string/link_nusic_google_play" >
</intent>
</Preference>
<Preference android:title="@string/GitHub"
android:summary="@string/preferences_summary_git_hub">
<intent
android:action="android.intent.action.VIEW"
android:data="@string/app_url" >
</intent>
</Preference>
<Preference android:title="@string/preferences_title_email"
android:summary="@string/preferences_summary_email">
<intent android:targetPackage="info.schnatterer.nusic"
android:targetClass="info.schnatterer.nusic.android.activities.NusicWebView"
android:data="mailto:android@schnatterer.info?subject=[nusic @string/versionName]&amp;body="/>
</Preference>
</PreferenceCategory>
</PreferenceScreen>
@@ -22,6 +22,8 @@
along with nusic-ui-android. If not, see <http://www.gnu.org/licenses/>.
-->
<!-- NOTE that there is another version of this document for APIs >= 14! -->
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" >
<PreferenceCategory android:title="@string/preferences_category_releases" >
@@ -44,12 +46,12 @@
<CheckBoxPreference
android:defaultValue="@bool/preferences_default_is_enabled_notify_new_releases"
android:key="@string/preferences_key_is_enabled_notify_new_releases"
android:summary="@string/preferences_summary_is_enabled_notify_new_releases"
android:summary="@string/preferences_summary_is_enabled_notify_new_releases_on"
android:title="@string/preferences_title_is_enabled_notify_new_releases" />
<CheckBoxPreference
android:defaultValue="@bool/preferences_default_is_enabled_notify_released_today"
android:key="@string/preferences_key_is_enabled_notify_released_today"
android:summary="@string/preferences_summary_is_enabled_notify_released_today"
android:summary="@string/preferences_summary_is_enabled_notify_released_today_on"
android:title="@string/preferences_title_is_enabled_notify_released_today" />
<!-- Implemented in activity: Time Picker dialog and scheduling of the service -->
<Preference
@@ -62,7 +64,7 @@
<CheckBoxPreference
android:defaultValue="@bool/preferences_default_download_only_on_wifi"
android:key="@string/preferences_key_download_only_on_wifi"
android:summary="@string/preferences_summary_download_only_on_wifi"
android:summary="@string/preferences_summary_download_only_on_wifi_on"
android:title="@string/preferences_title_download_only_on_wifi" />
</PreferenceCategory>
<PreferenceCategory android:title="@string/preferences_category_about" android:key="@string/preferences_key_about" >

0 comments on commit ab16eb1

Please sign in to comment.