Add a circlular memory indicator to the recent panel view (2/2)
Modifications:
It allows to be toggled on/off as well as setting a custom location.
Colors are not solid, they have an alpha channel to provide
transparency, this way it doesnt interfer much with the recents
panel view.
Screenshot:
http://goo.gl/Th7g0j
Frameworks Part:
https://gerrit.omnirom.org/#/c/3008/
Change-Id: If02666e084abe689a83afde3da33ccbdaa6c337a
diff --git a/res/values/custom_strings.xml b/res/values/custom_strings.xml
index 27718e5..ac33759 100644
--- a/res/values/custom_strings.xml
+++ b/res/values/custom_strings.xml
@@ -257,7 +257,7 @@
<string name="ad_pocket_mode_always">Always</string>
<string name="bars_and_menus_category_recent_panel_title" >Recents view</string>
- <!-- Recents clear all -->
+ <!-- Recents clear all -->
<string name="show_recent_clear_all_button_title">Clear all button</string>
<string name="show_recent_clear_all_button_summary">Show clear all button within the recent applications view</string>
<string name="recent_clear_all_button_location_title">Clear all button position</string>
@@ -267,6 +267,12 @@
<string name="recent_clear_all_button_location_bottom_left">Bottom left</string>
<string name="recent_clear_all_button_location_bottom_right">Bottom right</string>
+ <!-- Memory Indicator -->
+ <string name="show_recents_memory_indicator_title">Memory indicator</string>
+ <string name="show_recents_memory_indicator_summary">Show a memory indicator within the recent applications view</string>
+ <string name="recents_memory_indicator_location_title">Memory indicator position</string>
+ <string name="recents_memory_indicator_location_summary">Choose position of the memory indicator</string>
+
<!-- Contextual Notification Panel Header -->
<string name="notification_drawer_category_title">Notification drawer</string>
<string name="custom_statusbar_header_title">Contextual notification panel header</string>
diff --git a/res/xml/more_interface_settings.xml b/res/xml/more_interface_settings.xml
index d071b80..f035aca 100644
--- a/res/xml/more_interface_settings.xml
+++ b/res/xml/more_interface_settings.xml
@@ -39,4 +39,20 @@
android:entryValues="@array/recent_clear_all_button_location_values"
android:defaultValue="2"
android:dependency="recent_menu_clear_all" />
+
+ <CheckBoxPreference
+ android:key="show_recents_memory_indicator"
+ android:title="@string/show_recents_memory_indicator_title"
+ android:summary="@string/show_recents_memory_indicator_summary"
+ android:defaultValue="false" />
+
+ <ListPreference
+ android:key="recents_memory_indicator_location"
+ android:title="@string/recents_memory_indicator_location_title"
+ android:summary="@string/recents_memory_indicator_location_summary"
+ android:entries="@array/recent_clear_all_button_location_entries"
+ android:entryValues="@array/recent_clear_all_button_location_values"
+ android:defaultValue="1"
+ android:dependency="show_recents_memory_indicator" />
+
</PreferenceScreen>