Add link to companion docs under app configuration (#845)

* Add link to companion docs under app configuration

* Review comments
This commit is contained in:
Daniel Shokouhi 2020-08-30 05:18:35 -07:00 committed by GitHub
parent de1b8d58d9
commit 83c4dbb92c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,10 @@
<!-- drawable/question.xml -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="@color/colorAccent"
android:pathData="M12,2c5.514,0 10,4.486 10,10s-4.486,10 -10,10 -10,-4.486 -10,-10 4.486,-10 10,-10zM12,0c-6.627,0 -12,5.373 -12,12s5.373,12 12,12 12,-5.373 12,-12 -5.373,-12 -12,-12zM13.25,17c0,0.69 -0.559,1.25 -1.25,1.25 -0.689,0 -1.25,-0.56 -1.25,-1.25s0.561,-1.25 1.25,-1.25c0.691,0 1.25,0.56 1.25,1.25zM14.643,7.002c-0.608,-0.616 -1.515,-0.955 -2.551,-0.955 -2.18,0 -3.59,1.55 -3.59,3.95h2.011c0,-1.486 0.829,-2.013 1.538,-2.013 0.634,0 1.307,0.421 1.364,1.226 0.062,0.847 -0.39,1.277 -0.962,1.821 -1.412,1.343 -1.438,1.993 -1.432,3.468h2.005c-0.013,-0.664 0.03,-1.203 0.935,-2.178 0.677,-0.73 1.519,-1.638 1.536,-3.022 0.011,-0.924 -0.284,-1.719 -0.854,-2.297z"/>
</vector>

View file

@ -40,6 +40,7 @@ to your home internet.</string>
<string name="device_registration">Device Registration</string>
<string name="dialog_add_panel_shortcut_content">Create a shortcut to this item?</string>
<string name="dialog_add_panel_shortcut_title">Add Shortcut</string>
<string name="documentation">Documentation</string>
<string name="enabled_summary">When enabled values will be sent to Home Assistant</string>
<string name="enabled_title">Enabled</string>
<string name="entity_attribute_checkbox">Append Attribute Value</string>
@ -82,6 +83,7 @@ Home Assistant instance</string>
<string name="manage_ssids_input_exists">This SSID already exists.</string>
<string name="manual_setup">enter address manually</string>
<string name="map">Map</string>
<string name="need_help">Need Help?</string>
<string name="nfc_btn_create_duplicate">Create duplicate</string>
<string name="nfc_btn_fire_event">Fire event</string>
<string name="nfc_btn_read_tag">Read NFC Tag</string>

View file

@ -74,6 +74,18 @@
android:title="@string/themes_title_settings"
app:useSimpleSummaryProvider="true"/>
</PreferenceCategory>
<PreferenceCategory
android:title="@string/need_help">
<Preference
android:key="docs"
android:icon="@drawable/ic_question"
android:title="@string/documentation"
android:summary="https://companion.home-assistant.io"
app:enableCopying="true">
<intent android:action="android.intent.action.VIEW"
android:data="https://companion.home-assistant.io" />
</Preference>
</PreferenceCategory>
<PreferenceCategory
android:title="@string/app_version_info">
<Preference