Add account picker to Support Tab
Add a spinner to select the account for user. Bug: 32249920 Test: make RunSettingsRoboTests Change-Id: I372d16ec5ec3230f5f2994d79f4fd27085092236
This commit is contained in:
@@ -18,6 +18,7 @@ package com.android.settings.overlay;
|
||||
|
||||
import android.accounts.Account;
|
||||
import android.annotation.IntDef;
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.StringRes;
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
@@ -111,15 +112,16 @@ public interface SupportFeatureProvider {
|
||||
void setShouldShowDisclaimerDialog(Context context, boolean shouldShow);
|
||||
|
||||
/**
|
||||
* Returns an {@link Account} that's eligible for support options.
|
||||
* Returns array of {@link Account} that's eligible for support options.
|
||||
*/
|
||||
Account getSupportEligibleAccount(Context context);
|
||||
@NonNull
|
||||
Account[] getSupportEligibleAccounts(Context context);
|
||||
|
||||
/**
|
||||
* Starts support activity of specified type
|
||||
*
|
||||
* @param activity Calling activity
|
||||
* @param account A account returned by {@link #getSupportEligibleAccount}
|
||||
* @param account A account that selected by user
|
||||
* @param type The type of support account needs.
|
||||
*/
|
||||
void startSupport(Activity activity, Account account, @SupportType int type);
|
||||
|
Reference in New Issue
Block a user