diff options
| author | 2017-04-10 11:18:31 -0700 | |
|---|---|---|
| committer | 2017-04-12 18:41:35 +0000 | |
| commit | ab932147aa03d4621704bd7c6ce4b74ae5bb548d (patch) | |
| tree | ff1028a4124a93930409f84874ab3504546b826f | |
| parent | 73edcd7328db1a1466e786baaae9657b7e6d5083 (diff) | |
Added strings for thermal shutdown warning
Strings for thermal shutdown warning were missing
so this CL adds them and a proto message value.
Test: SysUI tests still pass
Bug: 30994946
Change-Id: Ifd0b26248c2ebae5bcf32ecbea2566c14be7dc32
| -rw-r--r-- | packages/SystemUI/res/values/strings.xml | 7 | ||||
| -rw-r--r-- | proto/src/system_messages.proto | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/packages/SystemUI/res/values/strings.xml b/packages/SystemUI/res/values/strings.xml index 7bd9526cb274..be2f8d166494 100644 --- a/packages/SystemUI/res/values/strings.xml +++ b/packages/SystemUI/res/values/strings.xml @@ -1895,6 +1895,13 @@ <!-- Tuner string --> <string name="default_theme" translatable="false">Default</string> + <!-- Title for notification & dialog that the user's phone last shut down because it got too hot. [CHAR LIMIT=30] --> + <string name="thermal_shutdown_title">Phone turned off due to heat</string> + <!-- Message body for notification that user's phone last shut down because it got too hot. [CHAR LIMIT=100] --> + <string name="thermal_shutdown_message">Your phone is now running normally</string> + <!-- Text body for dialog alerting user that their phone last shut down bewcause it got too hot. [CHAR LIMIT=300] --> + <string name="thermal_shutdown_dialog_message">Your phone was too hot, so it turned off to cool down. Your phone is now running normally.\n\nYour phone may get too hot if you:\n\t• Use resource-intensive apps (such as gaming, video, or navigation apps)\n\t• Download or upload large files\n\t• Use your phone in high temperatures</string> + <!-- Title for notification (and dialog) that user's phone has reached a certain temperature and may start to slow down in order to cool down. [CHAR LIMIT=30] --> <string name="high_temp_title">Phone is getting warm</string> <!-- Message body for notification that user's phone has reached a certain temperature and may start to slow down in order to cool down. [CHAR LIMIT=100] --> diff --git a/proto/src/system_messages.proto b/proto/src/system_messages.proto index c4a28313ed0a..65cc17eec6bd 100644 --- a/proto/src/system_messages.proto +++ b/proto/src/system_messages.proto @@ -173,6 +173,9 @@ message SystemMessage { // Package: android NOTE_ACCOUNT_CREDENTIAL_PERMISSION = 38; + // Inform the user their phone recently shut down due to high temperature + NOTE_THERMAL_SHUTDOWN = 39; + // ADD_NEW_IDS_ABOVE_THIS_LINE // Legacy IDs with arbitrary values appear below // Legacy IDs existed as stable non-conflicting constants prior to the O release |