Enable/disable support buttons based on operation hours.

Also update support title based on whether support operation is
available.

Bug: 28827790
Change-Id: I65eb70d18ba16ccc263bce019fcbbe5e10ffa596
This commit is contained in:
Fan Zhang
2016-06-16 13:40:20 -07:00
parent b363eb89bc
commit 841b13ac98
3 changed files with 62 additions and 8 deletions

View File

@@ -48,6 +48,16 @@ public interface SupportFeatureProvider {
*/
boolean isSupportTypeEnabled(Context context, @SupportType int type);
/**
* Whether or not a support type is in operation 24/7.
*/
boolean isAlwaysOperating(@SupportType int type);
/**
* Whether or not a support type is operating now.
*/
boolean isOperatingNow(@SupportType int type);
/**
* Returns a localized string indicating estimated wait time for a support time.
*/