Merge "Add list item to open tips & tricks." into nyc-mr1-dev

This commit is contained in:
TreeHugger Robot
2016-05-10 20:31:08 +00:00
committed by Android (Google) Code Review
4 changed files with 44 additions and 0 deletions

View File

@@ -188,6 +188,11 @@ public final class SupportItemAdapter extends RecyclerView.Adapter<SupportItemAd
.setText1(R.string.support_forum_title)
.setIntent(mSupportFeatureProvider.getForumIntent())
.build());
mSupportData.add(new SupportData.Builder(TYPE_SUPPORT_TILE)
.setIcon(R.drawable.ic_lightbulb_outline_24)
.setText1(R.string.support_tips_and_tricks_title)
.setIntent(mSupportFeatureProvider.getTipsAndTricksIntent(mActivity))
.build());
mSupportData.add(new SupportData.Builder(TYPE_SUPPORT_TILE)
.setIcon(R.drawable.ic_help_24dp)
.setText1(R.string.help_feedback_label)

View File

@@ -80,4 +80,9 @@ public interface SupportFeatureProvider {
* Returns an intent that will start the add account UI.
*/
Intent getAccountLoginIntent();
/**
* Returns an intent that will launch the tips and tricks UI.
*/
Intent getTipsAndTricksIntent(Context context);
}