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

am: 277b7a81bd

* commit '277b7a81bdf4e5c9147dbb430f875c7f80e4e0e1':
  Add list item to open tips & tricks.

Change-Id: I765b9f356c24c654ff08192ef3ed0bc582b24a59
This commit is contained in:
Andrew Sapperstein
2016-05-10 20:44:56 +00:00
committed by android-build-merger
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);
}