Explicitly setAccount in the same way as setHasInternet.

Bug: 28141203

This frees adapter from updating account and internet internally, and
allows refreshData() be private.

Change-Id: I8ccb4311c48c66222ee19e2d01b1c4943acdb0ee
This commit is contained in:
Fan Zhang
2016-04-29 13:05:49 -07:00
parent fc63188c2c
commit 9502163f92
3 changed files with 28 additions and 16 deletions

View File

@@ -18,7 +18,6 @@ package com.android.settings.overlay;
import android.accounts.Account;
import android.annotation.IntDef;
import android.annotation.NonNull;
import android.content.Context;
import android.content.Intent;
@@ -51,8 +50,7 @@ public interface SupportFeatureProvider {
/**
* Returns an {@link Account} that's eligible for support options.
*/
@NonNull
Account[] getSupportEligibleAccounts(Context context);
Account getSupportEligibleAccount(Context context);
/**
* Returns an {@link Intent} that opens email support for specified account.