mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-04-17 12:21:22 +00:00
ktlint: Fix indentation violations
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
@@ -46,7 +46,7 @@ class ErrorUtil {
|
||||
@JvmStatic
|
||||
fun openActivity(context: Context, errorInfo: ErrorInfo) {
|
||||
if (PreferenceManager.getDefaultSharedPreferences(context)
|
||||
.getBoolean(MainActivity.KEY_IS_IN_BACKGROUND, true)
|
||||
.getBoolean(MainActivity.KEY_IS_IN_BACKGROUND, true)
|
||||
) {
|
||||
createNotification(context, errorInfo)
|
||||
} else {
|
||||
|
||||
@@ -65,7 +65,7 @@ class FeedViewModel(
|
||||
feedDatabaseManager.oldestSubscriptionUpdate(groupId),
|
||||
|
||||
Function6 { t1: FeedEventManager.Event, t2: Boolean, t3: Boolean, t4: Boolean,
|
||||
t5: Long, t6: List<OffsetDateTime?> ->
|
||||
t5: Long, t6: List<OffsetDateTime?> ->
|
||||
return@Function6 CombineResultEventHolder(t1, t2, t3, t4, t5, t6.firstOrNull())
|
||||
}
|
||||
)
|
||||
|
||||
@@ -68,7 +68,7 @@ object ImageStrategy {
|
||||
val initialComparator =
|
||||
Comparator // the first step splits the images into groups of resolution levels
|
||||
.comparingInt { i: Image ->
|
||||
return@comparingInt when (i.estimatedResolutionLevel) {
|
||||
return@comparingInt when (i.estimatedResolutionLevel) {
|
||||
// avoid unknowns as much as possible
|
||||
ResolutionLevel.UNKNOWN -> 3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user