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:
parent
16e1a4ea0c
commit
7e352c1aeb
2 changed files with 14 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue