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" /> + +