mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2025-01-26 23:45:26 +01:00
MainActivity Lint fixes
This commit is contained in:
parent
5c4f8bf18b
commit
82f711d62c
@ -165,7 +165,12 @@ open class MainActivity : BaseActivity<MainActivityBinding>(), DownloadServiceLi
|
|||||||
anchorView = binding.bottomNav
|
anchorView = binding.bottomNav
|
||||||
setAction(R.string.cancel) {
|
setAction(R.string.cancel) {
|
||||||
LibraryUpdateService.stop(context)
|
LibraryUpdateService.stop(context)
|
||||||
Handler().post { NotificationReceiver.dismissNotification(context, Notifications.ID_LIBRARY_PROGRESS) }
|
Handler().post {
|
||||||
|
NotificationReceiver.dismissNotification(
|
||||||
|
context,
|
||||||
|
Notifications.ID_LIBRARY_PROGRESS
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -404,7 +409,10 @@ open class MainActivity : BaseActivity<MainActivityBinding>(), DownloadServiceLi
|
|||||||
recentsItem,
|
recentsItem,
|
||||||
getString(R.string.manage_whats_downloading),
|
getString(R.string.manage_whats_downloading),
|
||||||
getString(R.string.visit_recents_for_download_queue)
|
getString(R.string.visit_recents_for_download_queue)
|
||||||
).outerCircleColorInt(getResourceColor(R.attr.colorAccent)).outerCircleAlpha(0.95f).titleTextSize(20)
|
).outerCircleColorInt(getResourceColor(R.attr.colorAccent)).outerCircleAlpha(0.95f)
|
||||||
|
.titleTextSize(
|
||||||
|
20
|
||||||
|
)
|
||||||
.titleTextColor(android.R.color.white).descriptionTextSize(16)
|
.titleTextColor(android.R.color.white).descriptionTextSize(16)
|
||||||
.descriptionTextColor(R.color.md_white_1000_76)
|
.descriptionTextColor(R.color.md_white_1000_76)
|
||||||
.icon(contextCompatDrawable(R.drawable.ic_recent_read_32dp))
|
.icon(contextCompatDrawable(R.drawable.ic_recent_read_32dp))
|
||||||
@ -485,7 +493,8 @@ open class MainActivity : BaseActivity<MainActivityBinding>(), DownloadServiceLi
|
|||||||
router.popToRoot()
|
router.popToRoot()
|
||||||
}
|
}
|
||||||
binding.bottomNav.post {
|
binding.bottomNav.post {
|
||||||
val controller = router.backstack.firstOrNull()?.controller() as? RecentsController
|
val controller =
|
||||||
|
router.backstack.firstOrNull()?.controller() as? RecentsController
|
||||||
controller?.tempJumpTo(
|
controller?.tempJumpTo(
|
||||||
when (intent.action) {
|
when (intent.action) {
|
||||||
SHORTCUT_RECENTLY_UPDATED -> RecentsPresenter.VIEW_TYPE_ONLY_UPDATES
|
SHORTCUT_RECENTLY_UPDATED -> RecentsPresenter.VIEW_TYPE_ONLY_UPDATES
|
||||||
@ -664,7 +673,8 @@ open class MainActivity : BaseActivity<MainActivityBinding>(), DownloadServiceLi
|
|||||||
alphaAnimation.addListener(
|
alphaAnimation.addListener(
|
||||||
EndAnimatorListener {
|
EndAnimatorListener {
|
||||||
binding.bottomNav.visibleIf(!hideBottomNav)
|
binding.bottomNav.visibleIf(!hideBottomNav)
|
||||||
binding.bottomView.visibility = if (hideBottomNav) View.GONE else binding.bottomView.visibility
|
binding.bottomView.visibility =
|
||||||
|
if (hideBottomNav) View.GONE else binding.bottomView.visibility
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
alphaAnimation.duration = 200
|
alphaAnimation.duration = 200
|
||||||
|
Loading…
x
Reference in New Issue
Block a user