diff --git a/app/src/main/java/com/github/dfa/diaspora_android/activity/MainActivity.java b/app/src/main/java/com/github/dfa/diaspora_android/activity/MainActivity.java
index feeb24d2..852a84f6 100644
--- a/app/src/main/java/com/github/dfa/diaspora_android/activity/MainActivity.java
+++ b/app/src/main/java/com/github/dfa/diaspora_android/activity/MainActivity.java
@@ -381,6 +381,7 @@ public class MainActivity extends ThemedActivity
navMenu.findItem(R.id.nav_exit).setVisible(appSettings.isVisibleInNavExit());
navMenu.findItem(R.id.nav_activities).setVisible(appSettings.isVisibleInNavActivities());
navMenu.findItem(R.id.nav_aspects).setVisible(appSettings.isVisibleInNavAspects());
+ navMenu.findItem(R.id.nav_contacts).setVisible(appSettings.isVisibleInNavContacts());
navMenu.findItem(R.id.nav_commented).setVisible(appSettings.isVisibleInNavCommented());
navMenu.findItem(R.id.nav_followed_tags).setVisible(appSettings.isVisibleInNavFollowed_tags());
navMenu.findItem(R.id.nav_about).setVisible(appSettings.isVisibleInNavHelp_license());
@@ -997,6 +998,14 @@ public class MainActivity extends ThemedActivity
}
break;
+ case R.id.nav_contacts: {
+ if(WebHelper.isOnline(MainActivity.this)) {
+ openDiasporaUrl(urls.getManageContactsUrl());
+ } else {
+ snackbarNoInternet.show();
+ }
+ }
+
case R.id.nav_activities: {
if (WebHelper.isOnline(MainActivity.this)) {
openDiasporaUrl(urls.getActivityUrl());
diff --git a/app/src/main/java/com/github/dfa/diaspora_android/data/AppSettings.java b/app/src/main/java/com/github/dfa/diaspora_android/data/AppSettings.java
index 5117b16a..2361722c 100644
--- a/app/src/main/java/com/github/dfa/diaspora_android/data/AppSettings.java
+++ b/app/src/main/java/com/github/dfa/diaspora_android/data/AppSettings.java
@@ -344,6 +344,10 @@ public class AppSettings {
return getBoolean(prefApp, R.string.pref_key__visibility_nav__profile, true);
}
+ public boolean isVisibleInNavContacts() {
+ return getBoolean(prefApp, R.string.pref_key__visibility_nav__contacts, false);
+ }
+
public void setPrimaryColorSettings(int base, int shade) {
setInt(prefApp, R.string.pref_key__primary_color_base, base);
setInt(prefApp, R.string.pref_key__primary_color_shade, shade);
diff --git a/app/src/main/res/drawable/ic_contacts_black_24px.xml b/app/src/main/res/drawable/ic_contacts_black_24px.xml
new file mode 100644
index 00000000..e8aa75ab
--- /dev/null
+++ b/app/src/main/res/drawable/ic_contacts_black_24px.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/menu/main__navdrawer.xml b/app/src/main/res/menu/main__navdrawer.xml
index 4de643b3..4c6004cd 100644
--- a/app/src/main/res/menu/main__navdrawer.xml
+++ b/app/src/main/res/menu/main__navdrawer.xml
@@ -21,6 +21,11 @@
android:icon="@drawable/ic_group_black_48px"
android:title="@string/nav_aspects" />
+
+
- pref_key__visibility_nav__aspects
pref_key__visibility_nav__followed_tags
pref_key__visibility_nav__profile
+ pref_key__visibility_nav__contacts
podUserProfile_avatar
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 576e6e77..e6e1d37f 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -28,6 +28,7 @@
Mentions
Public
Search
+ Contacts
Tor
@@ -68,6 +69,7 @@
About | Help
Followed Tags
Public activities
+ @string/contacts
Share link as text
Share screenshot of webpage
diff --git a/app/src/main/res/xml/preferences__sub_navslider_vis.xml b/app/src/main/res/xml/preferences__sub_navslider_vis.xml
index 3a69f964..ac52fcde 100644
--- a/app/src/main/res/xml/preferences__sub_navslider_vis.xml
+++ b/app/src/main/res/xml/preferences__sub_navslider_vis.xml
@@ -17,6 +17,10 @@
android:defaultValue="true"
android:key="@string/pref_key__visibility_nav__aspects"
android:title="@string/nav_aspects"/>
+