From 0bc42ab6183e5cf3c15b7bde67e12870aa58966d Mon Sep 17 00:00:00 2001 From: Fan Zhang Date: Mon, 20 Jun 2016 12:34:03 -0700 Subject: [PATCH] Display operation hours when support is closed. Bug: 29105266 Change-Id: Id451b1aa820961fad4ece07fde5782a5aecaee68 --- res/values/strings.xml | 20 +++--- .../dashboard/SupportItemAdapter.java | 65 +++++++++++-------- .../overlay/SupportFeatureProvider.java | 5 ++ 3 files changed, 53 insertions(+), 37 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index cc162400365..6db579af383 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -7511,16 +7511,21 @@ We\'re here for you 24/7 - Live support closed + Support closed - Our support team is here to address any issues as soon as we can. + Our support team is here to address any issues - Our support team is here all day, every day. + Our support team is here all day, every day - Come back again during support hours. + Call us during support hours (local time)<br><b>%s</b> + + + + %s - %s, %s - %s<br> + You\'re offline @@ -7529,13 +7534,10 @@ To reach support, first connect to Wi-Fi or data. - Support call - - - Support email + Phone - Support chat + Chat Tips & tricks diff --git a/src/com/android/settings/dashboard/SupportItemAdapter.java b/src/com/android/settings/dashboard/SupportItemAdapter.java index a4d0571dc04..e76ca8b5759 100644 --- a/src/com/android/settings/dashboard/SupportItemAdapter.java +++ b/src/com/android/settings/dashboard/SupportItemAdapter.java @@ -21,8 +21,10 @@ import android.annotation.LayoutRes; import android.annotation.StringRes; import android.app.Activity; import android.app.DialogFragment; +import android.content.Context; import android.content.Intent; import android.support.v7.widget.RecyclerView; +import android.text.TextUtils; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; @@ -153,30 +155,31 @@ public final class SupportItemAdapter extends RecyclerView.Adapter