Loading aconfig/settings_datetime_flag_declarations.aconfig 0 → 100644 +11 −0 Original line number Diff line number Diff line package: "com.android.settings.flags" container: "system" flag { name: "datetime_feedback" # "location" is used by the Android System Time team for feature flags. namespace: "location" description: "Enable the time feedback feature, a button to launch feedback in Date & Time Settings" bug: "283239837" } res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -812,4 +812,7 @@ <!-- Array of carrier id that uses reusable activation code--> <integer-array name="config_carrier_use_rac" translatable="false"> </integer-array> <!-- The Activity intent to trigger to launch time-related feedback. --> <string name="config_time_feedback_intent_uri" translatable="false" /> </resources> res/values/strings.xml +9 −0 Original line number Diff line number Diff line Loading @@ -614,6 +614,15 @@ <!-- The menu item to switch to selecting a time zone with a fixed offset (such as UTC or GMT+0200) [CHAR LIMIT=30] --> <string name="zone_menu_by_offset">Select by UTC offset</string> <!-- The settings category title containing the feedback button [CHAR LIMIT=30] --> <string name="time_feedback_category_title">Feedback</string> <!-- Search keywords for the feedback category / section in Date & Time settings. [CHAR_LIMIT=NONE] --> <string name="keywords_time_feedback_category">feedback, bug, time, zone, timezone</string> <!-- The menu item to start the feedback process [CHAR LIMIT=30] --> <string name="time_feedback_title">Send feedback about time</string> <!-- Search keywords for the feedback option in Date & Time settings. [CHAR_LIMIT=NONE] --> <string name="keywords_time_feedback">feedback, bug, time, zone, timezone</string> <!-- Security Settings --><skip /> <!-- Security settings screen, setting option name to change screen timeout --> res/xml/date_time_prefs.xml +15 −0 Original line number Diff line number Diff line Loading @@ -73,6 +73,21 @@ </PreferenceCategory> <!-- An optional preference category for feedback. Only displayed up if enabled via flags and config. --> <PreferenceCategory android:key="time_feedback_preference_category" android:title="@string/time_feedback_category_title" settings:keywords="@string/keywords_time_feedback_category" settings:controller="com.android.settings.datetime.TimeFeedbackPreferenceCategoryController"> <Preference android:key="time_feedback" android:title="@string/time_feedback_title" settings:keywords="@string/keywords_time_feedback" settings:controller="com.android.settings.datetime.TimeFeedbackPreferenceController" /> </PreferenceCategory> <PreferenceCategory android:key="time_format_preference_category" android:title="@string/time_format_category_title" Loading src/com/android/settings/datetime/DateTimeSettings.java +6 −0 Original line number Diff line number Diff line Loading @@ -68,6 +68,12 @@ public class DateTimeSettings extends DashboardFragment implements .setTimeAndDateCallback(this) .setFromSUW(isFromSUW); // All the elements in the category are optional, so we must ensure the category is only // available if any of the elements are available. TimeFeedbackPreferenceCategoryController helpAndFeedbackCategoryController = use(TimeFeedbackPreferenceCategoryController.class); use(TimeFeedbackPreferenceController.class) .registerWithOptionalCategoryController(helpAndFeedbackCategoryController); } @Override Loading Loading
aconfig/settings_datetime_flag_declarations.aconfig 0 → 100644 +11 −0 Original line number Diff line number Diff line package: "com.android.settings.flags" container: "system" flag { name: "datetime_feedback" # "location" is used by the Android System Time team for feature flags. namespace: "location" description: "Enable the time feedback feature, a button to launch feedback in Date & Time Settings" bug: "283239837" }
res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -812,4 +812,7 @@ <!-- Array of carrier id that uses reusable activation code--> <integer-array name="config_carrier_use_rac" translatable="false"> </integer-array> <!-- The Activity intent to trigger to launch time-related feedback. --> <string name="config_time_feedback_intent_uri" translatable="false" /> </resources>
res/values/strings.xml +9 −0 Original line number Diff line number Diff line Loading @@ -614,6 +614,15 @@ <!-- The menu item to switch to selecting a time zone with a fixed offset (such as UTC or GMT+0200) [CHAR LIMIT=30] --> <string name="zone_menu_by_offset">Select by UTC offset</string> <!-- The settings category title containing the feedback button [CHAR LIMIT=30] --> <string name="time_feedback_category_title">Feedback</string> <!-- Search keywords for the feedback category / section in Date & Time settings. [CHAR_LIMIT=NONE] --> <string name="keywords_time_feedback_category">feedback, bug, time, zone, timezone</string> <!-- The menu item to start the feedback process [CHAR LIMIT=30] --> <string name="time_feedback_title">Send feedback about time</string> <!-- Search keywords for the feedback option in Date & Time settings. [CHAR_LIMIT=NONE] --> <string name="keywords_time_feedback">feedback, bug, time, zone, timezone</string> <!-- Security Settings --><skip /> <!-- Security settings screen, setting option name to change screen timeout -->
res/xml/date_time_prefs.xml +15 −0 Original line number Diff line number Diff line Loading @@ -73,6 +73,21 @@ </PreferenceCategory> <!-- An optional preference category for feedback. Only displayed up if enabled via flags and config. --> <PreferenceCategory android:key="time_feedback_preference_category" android:title="@string/time_feedback_category_title" settings:keywords="@string/keywords_time_feedback_category" settings:controller="com.android.settings.datetime.TimeFeedbackPreferenceCategoryController"> <Preference android:key="time_feedback" android:title="@string/time_feedback_title" settings:keywords="@string/keywords_time_feedback" settings:controller="com.android.settings.datetime.TimeFeedbackPreferenceController" /> </PreferenceCategory> <PreferenceCategory android:key="time_format_preference_category" android:title="@string/time_format_category_title" Loading
src/com/android/settings/datetime/DateTimeSettings.java +6 −0 Original line number Diff line number Diff line Loading @@ -68,6 +68,12 @@ public class DateTimeSettings extends DashboardFragment implements .setTimeAndDateCallback(this) .setFromSUW(isFromSUW); // All the elements in the category are optional, so we must ensure the category is only // available if any of the elements are available. TimeFeedbackPreferenceCategoryController helpAndFeedbackCategoryController = use(TimeFeedbackPreferenceCategoryController.class); use(TimeFeedbackPreferenceController.class) .registerWithOptionalCategoryController(helpAndFeedbackCategoryController); } @Override Loading