Make sure the dashboard is up to date
Bug: 25794089 Change-Id: I65eaa8e14b3c998ec122eaa9fc4dbbe3749c568c
This commit is contained in:
@@ -33,12 +33,13 @@ public class SummaryLoader {
|
||||
private static final boolean DEBUG = DashboardSummary.DEBUG;
|
||||
private static final String TAG = "SummaryLoader";
|
||||
|
||||
public static final String SUMMARY_PROVIDER_FACTORY = "SUMMARY_PROVIDER_FACTORY";
|
||||
|
||||
private final Activity mActivity;
|
||||
private final DashboardAdapter mAdapter;
|
||||
private final ArrayMap<SummaryProvider, DashboardTile> mSummaryMap = new ArrayMap<>();
|
||||
private final List<DashboardTile> mTiles = new ArrayList<>();
|
||||
|
||||
public static final String SUMMARY_PROVIDER_FACTORY = "SUMMARY_PROVIDER_FACTORY";
|
||||
private DashboardAdapter mAdapter;
|
||||
|
||||
public SummaryLoader(Activity activity, DashboardAdapter adapter,
|
||||
List<DashboardCategory> categories) {
|
||||
@@ -56,6 +57,10 @@ public class SummaryLoader {
|
||||
}
|
||||
}
|
||||
|
||||
public void setAdapter(DashboardAdapter adapter) {
|
||||
mAdapter = adapter;
|
||||
}
|
||||
|
||||
public void setSummary(SummaryProvider provider, CharSequence summary) {
|
||||
DashboardTile tile = mSummaryMap.get(provider);
|
||||
tile.summary = summary;
|
||||
|
Reference in New Issue
Block a user