From 7e352c1aeb911cf994afc35effd903961d3ef12f Mon Sep 17 00:00:00 2001 From: vanitasvitae Date: Wed, 10 Aug 2016 17:47:21 +0200 Subject: [PATCH] Readded profile item to navdrawer --- .../dfa/diaspora_android/activity/MainActivity.java | 9 +++++++++ app/src/main/res/menu/main__navdrawer.xml | 5 +++++ 2 files changed, 14 insertions(+) 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 bdbcff41..39fb4ca8 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 @@ -951,6 +951,15 @@ public class MainActivity extends AppCompatActivity } break; + case R.id.nav_profile: { + if (WebHelper.isOnline(MainActivity.this)) { + webView.loadUrl(urls.getProfileUrl()); + } else { + snackbarNoInternet.show(); + } + } + break; + case R.id.nav_followed_tags: { if (WebHelper.isOnline(MainActivity.this)) { WebHelper.showFollowedTagsList(webView, app); diff --git a/app/src/main/res/menu/main__navdrawer.xml b/app/src/main/res/menu/main__navdrawer.xml index 61151627..14cb764f 100644 --- a/app/src/main/res/menu/main__navdrawer.xml +++ b/app/src/main/res/menu/main__navdrawer.xml @@ -7,6 +7,11 @@ android:icon="@drawable/jb_stream" android:title="@string/nav_stream" /> + +