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

am: ebe454e32a

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

Change-Id: Ia7dac06f485b5ce5191e3952737824c96f8d1989
This commit is contained in:
Andrew Sapperstein
2016-05-10 22:06:15 +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);
}