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:
@@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user