ktlint: Fix blank-line-between-when-conditions violations
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
parent
ff2390b144
commit
9b7874ff51
15 changed files with 75 additions and 2 deletions
|
|
@ -92,6 +92,7 @@ object ImageStrategy {
|
|||
// the same number for those.
|
||||
val finalComparator = when (nonNoneQuality) {
|
||||
PreferredImageQuality.NONE -> initialComparator
|
||||
|
||||
PreferredImageQuality.LOW -> initialComparator.thenComparingDouble { image ->
|
||||
val pixelCount = estimatePixelCount(image, widthOverHeight)
|
||||
abs(pixelCount - BEST_LOW_H * BEST_LOW_H * widthOverHeight)
|
||||
|
|
|
|||
|
|
@ -37,7 +37,9 @@ object PoTokenProviderImpl : PoTokenProvider {
|
|||
webViewBadImpl = true
|
||||
return null
|
||||
}
|
||||
|
||||
null -> throw e
|
||||
|
||||
else -> throw cause // includes PoTokenException
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,8 +53,10 @@ class TimestampLongPressClickableSpan(
|
|||
when (relatedInfoService) {
|
||||
ServiceList.YouTube ->
|
||||
return relatedStreamUrl + "&t=" + timestampMatchDTO.seconds()
|
||||
|
||||
ServiceList.SoundCloud, ServiceList.MediaCCC ->
|
||||
return relatedStreamUrl + "#t=" + timestampMatchDTO.seconds()
|
||||
|
||||
ServiceList.PeerTube ->
|
||||
return relatedStreamUrl + "?start=" + timestampMatchDTO.seconds()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue