mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-27 06:11:02 +00:00
feat: view subscriptions in settings
This commit is contained in:
@@ -18,6 +18,7 @@ import ani.dantotsu.navBarHeight
|
||||
import ani.dantotsu.notifications.TaskScheduler
|
||||
import ani.dantotsu.notifications.anilist.AnilistNotificationWorker
|
||||
import ani.dantotsu.notifications.comment.CommentNotificationWorker
|
||||
import ani.dantotsu.notifications.subscription.SubscriptionHelper
|
||||
import ani.dantotsu.notifications.subscription.SubscriptionNotificationWorker
|
||||
import ani.dantotsu.openSettings
|
||||
import ani.dantotsu.settings.saving.PrefManager
|
||||
@@ -102,6 +103,19 @@ class SettingsNotificationActivity : AppCompatActivity() {
|
||||
).scheduleAllTasks(context)
|
||||
}
|
||||
),
|
||||
Settings(
|
||||
type = 1,
|
||||
name = getString(R.string.view_subscriptions),
|
||||
desc = getString(R.string.view_subscriptions_desc),
|
||||
icon = R.drawable.ic_round_search_24,
|
||||
onClick = {
|
||||
val subscriptions = SubscriptionHelper.getSubscriptions()
|
||||
SubscriptionsBottomDialog.newInstance(subscriptions).show(
|
||||
supportFragmentManager,
|
||||
"subscriptions"
|
||||
)
|
||||
}
|
||||
),
|
||||
Settings(
|
||||
type = 1,
|
||||
name = getString(R.string.anilist_notification_filters),
|
||||
|
||||
Reference in New Issue
Block a user