mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-12 00:26:15 +00:00
feat: view profile on anilist
This commit is contained in:
@@ -24,6 +24,7 @@ import ani.dantotsu.databinding.ActivityProfileBinding
|
||||
import ani.dantotsu.initActivity
|
||||
import ani.dantotsu.loadImage
|
||||
import ani.dantotsu.navBarHeight
|
||||
import ani.dantotsu.openLinkInBrowser
|
||||
import ani.dantotsu.others.ImageViewDialog
|
||||
import ani.dantotsu.profile.activity.FeedFragment
|
||||
import ani.dantotsu.settings.saving.PrefManager
|
||||
@@ -142,6 +143,10 @@ class ProfileActivity : AppCompatActivity(), AppBarLayout.OnOffsetChangedListene
|
||||
)
|
||||
true
|
||||
}
|
||||
R.id.action_view_on_anilist -> {
|
||||
openLinkInBrowser("https://anilist.co/user/${user.name}")
|
||||
true
|
||||
}
|
||||
else -> false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,4 +12,9 @@
|
||||
android:title="@string/view_followers"
|
||||
app:showAsAction="never" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_view_on_anilist"
|
||||
android:title="@string/view_on_anilist"
|
||||
app:showAsAction="never" />
|
||||
|
||||
</menu>
|
||||
@@ -699,4 +699,5 @@ Non quae tempore quo provident laudantium qui illo dolor vel quia dolor et exerc
|
||||
<string name="blur_banners">Blur Banners</string>
|
||||
<string name="blur">Blur</string>
|
||||
<string name="hide_scroll_bar">Hide Scroll Bar</string>
|
||||
<string name="view_on_anilist">View on AniList</string>
|
||||
</resources>
|
||||
|
||||
Reference in New Issue
Block a user