1
0
Fork 0
mirror of https://github.com/gsantner/dandelion synced 2024-11-22 04:12:08 +01:00

Readded profile item to navdrawer

This commit is contained in:
vanitasvitae 2016-08-10 17:47:21 +02:00
parent 16e1a4ea0c
commit 7e352c1aeb
2 changed files with 14 additions and 0 deletions

View file

@ -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);

View file

@ -7,6 +7,11 @@
android:icon="@drawable/jb_stream"
android:title="@string/nav_stream" />
<item
android:id="@+id/nav_profile"
android:icon="@drawable/ic_person_black_48px"
android:title="@string/nav_profile" />
<item
android:id="@+id/nav_followed_tags"
android:icon="@drawable/ic_local_offer_black_48px"