mirror of
https://github.com/etesync/android
synced 2025-04-12 04:36:04 +00:00
Add links to the usage guide.
This commit is contained in:
parent
8c01e64ff4
commit
5d712c72d0
app/src/main
java/com/etesync/syncadapter
res
@ -32,7 +32,7 @@ public class Constants {
|
||||
public static final Uri reportIssueUri = Uri.parse("https://github.com/etesync/android/issues");
|
||||
public static final Uri feedbackUri = reportIssueUri;
|
||||
public static final Uri faqUri = webUri.buildUpon().appendEncodedPath("faq/").build();
|
||||
public static final Uri helpUri = faqUri;
|
||||
public static final Uri helpUri = webUri.buildUpon().appendEncodedPath("usage-guide/").build();
|
||||
|
||||
public static final Uri serviceUrl = Uri.parse((DEBUG_REMOTE_URL == null) ? "https://api.etesync.com/" : DEBUG_REMOTE_URL);
|
||||
|
||||
|
@ -92,6 +92,9 @@ public class AccountsActivity extends AppCompatActivity implements NavigationVie
|
||||
case R.id.nav_website:
|
||||
startActivity(new Intent(Intent.ACTION_VIEW, Constants.webUri));
|
||||
break;
|
||||
case R.id.nav_guide:
|
||||
startActivity(new Intent(Intent.ACTION_VIEW, Constants.helpUri));
|
||||
break;
|
||||
case R.id.nav_faq:
|
||||
startActivity(new Intent(Intent.ACTION_VIEW, Constants.faqUri));
|
||||
break;
|
||||
|
10
app/src/main/res/drawable/ic_question_answer.xml
Normal file
10
app/src/main/res/drawable/ic_question_answer.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<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:alpha="0.54" >
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M21,6h-2v9L6,15v2c0,0.55 0.45,1 1,1h11l4,4L22,7c0,-0.55 -0.45,-1 -1,-1zM17,12L17,3c0,-0.55 -0.45,-1 -1,-1L3,2c-0.55,0 -1,0.45 -1,1v14l4,-4h10c0.55,0 1,-0.45 1,-1z"/>
|
||||
</vector>
|
@ -27,8 +27,12 @@
|
||||
android:title="@string/navigation_drawer_website"/>
|
||||
<item
|
||||
android:id="@+id/nav_faq"
|
||||
android:icon="@drawable/ic_help_dark"
|
||||
android:icon="@drawable/ic_question_answer"
|
||||
android:title="@string/navigation_drawer_faq"/>
|
||||
<item
|
||||
android:id="@+id/nav_guide"
|
||||
android:icon="@drawable/ic_help_dark"
|
||||
android:title="@string/navigation_drawer_guide"/>
|
||||
<item
|
||||
android:id="@+id/nav_report_issue"
|
||||
android:icon="@drawable/ic_bug_report"
|
||||
|
@ -57,6 +57,7 @@
|
||||
<string name="navigation_drawer_external_links">External links</string>
|
||||
<string name="navigation_drawer_website">Web site</string>
|
||||
<string name="navigation_drawer_faq">FAQ</string>
|
||||
<string name="navigation_drawer_guide">Usage Guide</string>
|
||||
<string name="navigation_drawer_forums">Community</string>
|
||||
<string name="navigation_drawer_donate">Donate</string>
|
||||
<string name="navigation_drawer_report_issue">Report issue</string>
|
||||
|
Loading…
Reference in New Issue
Block a user