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:
31
res/drawable/ic_lightbulb_outline_24.xml
Normal file
31
res/drawable/ic_lightbulb_outline_24.xml
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2016 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24.0"
|
||||
android:viewportHeight="24.0"
|
||||
android:tint="?android:attr/colorAccent">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M9,21c0,0.55 0.45,1 1,1h4c0.55,0 1,-0.45 1,-1v-1L9,20v1zM12,2C8.14,2
|
||||
5,5.14 5,9c0,2.38 1.19,4.47 3,5.74L8,17c0,0.55 0.45,1 1,1h6c0.55,0 1,-0.45
|
||||
1,-1v-2.26c1.81,-1.27 3,-3.36 3,-5.74 0,-3.86 -3.14,-7
|
||||
-7,-7zM14.85,13.1l-0.85,0.6L14,16h-4v-2.3l-0.85,-0.6C7.8,12.16 7,10.63 7,9c0,-2.76
|
||||
2.24,-5 5,-5s5,2.24 5,5c0,1.63 -0.8,3.16 -2.15,4.1z"/>
|
||||
</vector>
|
@@ -7517,6 +7517,9 @@
|
||||
<!-- Button label for visiting help forum [CHAR LIMIT=60]-->
|
||||
<string name="support_forum_title">Help forum</string>
|
||||
|
||||
<!-- Button label for visiting the tips & tricks site [CHAR LIMIT=60]-->
|
||||
<string name="support_tips_and_tricks_title">Tips & tricks</string>
|
||||
|
||||
<!-- Title text that indicates user needs to sign in to get customer support. [CHAR LIMIT=80]-->
|
||||
<string name="support_sign_in_required_title">Sign in for support</string>
|
||||
|
||||
|
@@ -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)
|
||||
|
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user