[3/3] OmniGears: Add ActiveDisplay settings to menu
Active display: Add options for date and am/pm [2/2]
Change-Id: I6af47b2fd47e77398eee98cc6e30b8fcf1a44d45
Active display: Add sunlight mode. [2/2]
Change-Id: I513c2ef1555ca48dfb553f80ca687d1ca9f27c55
Active display: allow hiding low priority notifications. [2/2]
Change-Id: I244743ed1a32f59065af3c4507f4132b7d3b0d72
Active display: Allow apps to be excluded from being displayed [2/2]
Change-Id: Ieb6368c050f5b46eec7398ab0162dc4fbf00a392
Active Display: Add always show pocket mode. [2/2]
Change-Id: I6f791c5727e98749780a5e9996e20d387ed98fa6
Base: https://gerrit.omnirom.org/#/c/2679/
Settings: https://gerrit.omnirom.org/#/c/2586/
Change-Id: Ibeb35ea4321cf8ee1bdfbb1c6c1f7ab841679932
diff --git a/res/values/custom_arrays.xml b/res/values/custom_arrays.xml
index 1cafba7..af57919 100644
--- a/res/values/custom_arrays.xml
+++ b/res/values/custom_arrays.xml
@@ -123,6 +123,41 @@
<item>9</item>
</string-array>
+ <!-- ActiveDisplay Notifications -->
+ <string-array name="ad_redisplay_entries" translatable="false">
+ <item>@string/ad_redisplay_never</item>
+ <item>@string/ad_redisplay_1m</item>
+ <item>@string/ad_redisplay_5m</item>
+ <item>@string/ad_redisplay_15m</item>
+ <item>@string/ad_redisplay_30m</item>
+ <item>@string/ad_redisplay_1h</item>
+ <item>@string/ad_redisplay_2h</item>
+ <item>@string/ad_redisplay_5h</item>
+ </string-array>
+
+ <string-array name="ad_redisplay_values" translatable="false">
+ <item>0</item>
+ <item>60000</item>
+ <item>300000</item>
+ <item>900000</item>
+ <item>1800000</item>
+ <item>3600000</item>
+ <item>7200000</item>
+ <item>18000000</item>
+ </string-array>
+
+ <string-array name="ad_pocket_mode_entries" translatable="false">
+ <item>@string/ad_pocket_mode_off</item>
+ <item>@string/ad_pocket_mode_notifications</item>
+ <item>@string/ad_pocket_mode_always</item>
+ </string-array>
+
+ <string-array name="ad_pocket_mode_values" translatable="false">
+ <item>0</item>
+ <item>1</item>
+ <item>2</item>
+ </string-array>
+
<string-array name="recent_clear_all_button_location_entries" translatable="false">
<item>@string/recent_clear_all_button_location_top_left</item>
<item>@string/recent_clear_all_button_location_top_right</item>
diff --git a/res/values/custom_attrs.xml b/res/values/custom_attrs.xml
new file mode 100644
index 0000000..b856986
--- /dev/null
+++ b/res/values/custom_attrs.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 2013, The ChameleonOS Open Source 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.
+*/
+-->
+<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
+
+ <declare-styleable name="SeekBarPreference">
+ <attr name="min" format="integer" />
+ <attr name="unitsLeft" format="string" />
+ <attr name="unitsRight" format="string" />
+ </declare-styleable>
+
+</resources>
\ No newline at end of file
diff --git a/res/values/custom_strings.xml b/res/values/custom_strings.xml
index c9ee678..ce949ee 100644
--- a/res/values/custom_strings.xml
+++ b/res/values/custom_strings.xml
@@ -22,6 +22,7 @@
<string name="reset">Reset</string>
<string name="bars_and_menus_settings">Bars and menus</string>
+ <string name="active_display_settings">ActiveDisplay</string>
<string name="bars_and_menus_category_status_bar_title">Status bar</string>
<string name="status_bar_battery_title">Battery style</string>
<string name="status_bar_toggle_brightness">Brightness control</string>
@@ -198,6 +199,44 @@
<string name="dialog_no_home_key_title">No home action</string>
<string name="no_home_key">You have no button assigned to the \"Home\" action! This can make your device unusable!</string>
+ <!-- Active Display Notifications -->
+ <string name="ad_settings_title">Active display</string>
+ <string name="ad_settings_summary">Change active display settings</string>
+ <string name="ad_enable_title">Enable</string>
+ <string name="ad_enable_summary_on">Active display enabled</string>
+ <string name="ad_enable_summary_off">Active display disabled</string>
+ <string name="ad_text_title">Notification text</string>
+ <string name="ad_text_summary">Show the notification text around the ring.</string>
+ <string name="ad_all_notifications_title">All notifications</string>
+ <string name="ad_all_notifications_summary">Show all notifications including ongoing, non-clearable notifications.</string>
+ <string name="ad_hide_low_priority_title">Hide low priority</string>
+ <string name="ad_hide_low_priority_title">Hide low priority</string>
+ <string name="ad_hide_low_priority_summary">Hide low priority notifications such as those from Google Now.</string>
+ <string name="ad_pocket_mode_title">Pocket mode</string>
+ <string name="ad_pocket_mode_summary">Show active display notifications when you take the device out of your pocket.</string>
+ <string name="ad_redisplay_title">Redisplay notifications</string>
+ <string name="ad_brightness_title">Notification brightness</string>
+ <string name="ad_customizations_title">Customizations</string>
+ <string name="ad_excluded_apps_title">Excluded applications</string>
+ <string name="ad_excluded_apps_summary">Excluded applications will not show up in active display.</string>
+ <string name="ad_show_date_title">Show date</string>
+ <string name="ad_show_ampm_title">Show AM/PM</string>
+ <string name="ad_sunlight_mode_title">Sunlight mode</string>
+ <string name="ad_brightness_summary">Brightness level for displaying notifications when automatic brightness is not enabled.</string>
+ <string name="ad_show_date_summary">Show the date above the clock</string>
+ <string name="ad_show_ampm_summary">Show AM/PM indicator next to time when using 12hour format</string>
+ <string name="ad_sunlight_mode_summary">Invert the colors when in areas with bright light such as direct sunlight.</string>
+ <string name="ad_redisplay_never">Never</string>
+ <string name="ad_redisplay_1m">1 minute</string>
+ <string name="ad_redisplay_5m">5 minutes</string>
+ <string name="ad_redisplay_15m">15 minutes</string>
+ <string name="ad_redisplay_30m">30 minutes</string>
+ <string name="ad_redisplay_1h">1 hour</string>
+ <string name="ad_redisplay_2h">2 hours</string>
+ <string name="ad_redisplay_5h">5 hours</string>
+ <string name="ad_pocket_mode_off">Off</string>
+ <string name="ad_pocket_mode_notifications">Notifications only</string>
+ <string name="ad_pocket_mode_always">Always</string>
<string name="bars_and_menus_category_recent_panel_title" >Recents menu</string>
<!-- Recents clear all -->