Commit 03f54f54 authored by Ricki Hirner's avatar Ricki Hirner 🐑

Add link to Privacy policy to Accounts drawer

parent 41ba92cc
Pipeline #105910004 passed with stages
in 8 minutes and 22 seconds
......@@ -55,6 +55,9 @@ class DefaultAccountsDrawerHandler: IAccountsDrawerHandler {
//if (BuildConfig.FLAVOR != App.FLAVOR_GOOGLE_PLAY)
UiUtils.launchUri(activity, App.homepageUrl(activity)
.buildUpon().appendPath("donate").build())
R.id.nav_privacy ->
UiUtils.launchUri(activity, App.homepageUrl(activity)
.buildUpon().appendPath("privacy").build())
else ->
return false
}
......
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:alpha="0.54"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M19.35,10.04C18.67,6.59 15.64,4 12,4c-1.48,0 -2.85,0.43 -4.01,1.17l1.46,1.46C10.21,6.23 11.08,6 12,6c3.04,0 5.5,2.46 5.5,5.5v0.5H19c1.66,0 3,1.34 3,3 0,1.13 -0.64,2.11 -1.56,2.62l1.45,1.45C23.16,18.16 24,16.68 24,15c0,-2.64 -2.05,-4.78 -4.65,-4.96zM3,5.27l2.75,2.74C2.56,8.15 0,10.77 0,14c0,3.31 2.69,6 6,6h11.73l2,2L21,20.73 4.27,4 3,5.27zM7.73,10l8,8H6c-2.21,0 -4,-1.79 -4,-4s1.79,-4 4,-4h1.73z"/>
</vector>
......@@ -58,6 +58,10 @@
android:id="@+id/nav_donate"
android:icon="@drawable/ic_attach_money_dark"
android:title="@string/navigation_drawer_donate"/>
<item
android:id="@+id/nav_privacy"
android:icon="@drawable/ic_cloud_off_dark"
android:title="@string/navigation_drawer_privacy_policy"/>
</menu>
</item>
......
......@@ -77,6 +77,7 @@
<string name="navigation_drawer_faq">FAQ</string>
<string name="navigation_drawer_forums">Help / Forums</string>
<string name="navigation_drawer_donate">Donate</string>
<string name="navigation_drawer_privacy_policy">Privacy policy</string>
<string name="account_list_no_internet">No Internet connectivity. Android will not run synchronization.</string>
<string name="account_list_empty">Welcome to DAVx⁵!\n\nYou can add a CalDAV/CardDAV account now.</string>
<string name="accounts_global_sync_disabled">System-wide automatic synchronization is disabled</string>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment