Add ability to switch between support versions

Creates a trampoline activity and adds functionality
to the SupportFeatureProvider interface so that we can
conditionally launch support V1 or V2.

Test: Test in ag/2144016
Bug: 37306241
Change-Id: I6d24e65cad91692e457ea216713e90239845b4f5
This commit is contained in:
Salvador Martinez
2017-04-20 15:45:19 -07:00
parent 4380a8fd7c
commit 9f629d6980
5 changed files with 67 additions and 5 deletions

View File

@@ -128,6 +128,19 @@ public interface SupportFeatureProvider {
*/
void startSupport(Activity activity, Account account, @SupportType int type);
/**
* Starts support v2, invokes the support home page. Will no-op if support v2 is not enabled.
*
* @param activity Calling activity.
*/
void startSupportV2(Activity activity);
/**
* Checks if support v2 is enabled for this device.
* @return a boolean indicating if support v2 is enabled.
*/
boolean isSupportV2Enabled();
/**
* Returns an {@link Intent} that opens help and allow user get help on sign in.
*/