mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 15:23:00 +00:00 
			
		
		
		
	Kotlin lint fixing
This commit is contained in:
		| @@ -48,8 +48,7 @@ class FeedViewModel(applicationContext: Context, val groupId: Long = FeedGroupEn | |||||||
|             .throttleLatest(DEFAULT_THROTTLE_TIMEOUT, TimeUnit.MILLISECONDS) |             .throttleLatest(DEFAULT_THROTTLE_TIMEOUT, TimeUnit.MILLISECONDS) | ||||||
|             .subscribeOn(Schedulers.io()) |             .subscribeOn(Schedulers.io()) | ||||||
|             .observeOn(AndroidSchedulers.mainThread()) |             .observeOn(AndroidSchedulers.mainThread()) | ||||||
|             .subscribe { |             .subscribe { (event, listFromDB, notLoadedCount, oldestUpdate) -> | ||||||
|                 val (event, listFromDB, notLoadedCount, oldestUpdate) = it |  | ||||||
|  |  | ||||||
|                 val oldestUpdateCalendar = oldestUpdate?.toCalendar() |                 val oldestUpdateCalendar = oldestUpdate?.toCalendar() | ||||||
|  |  | ||||||
|   | |||||||
| @@ -15,6 +15,7 @@ import org.schabi.newpipe.util.AnimationUtils | |||||||
| import kotlin.math.abs | import kotlin.math.abs | ||||||
| import kotlin.math.hypot | import kotlin.math.hypot | ||||||
| import kotlin.math.max | import kotlin.math.max | ||||||
|  | import kotlin.math.min | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  * Base gesture handling for [VideoPlayerImpl] |  * Base gesture handling for [VideoPlayerImpl] | ||||||
| @@ -117,7 +118,7 @@ abstract class BasePlayerGestureListener( | |||||||
|             initSecPointerX = event.getX(1) |             initSecPointerX = event.getX(1) | ||||||
|             initSecPointerY = event.getY(1) |             initSecPointerY = event.getY(1) | ||||||
|             // record distance between fingers |             // record distance between fingers | ||||||
|             initPointerDistance = Math.hypot(initFirstPointerX - initSecPointerX.toDouble(), |             initPointerDistance = hypot(initFirstPointerX - initSecPointerX.toDouble(), | ||||||
|                 initFirstPointerY - initSecPointerY.toDouble()) |                 initFirstPointerY - initSecPointerY.toDouble()) | ||||||
|  |  | ||||||
|             isResizing = true |             isResizing = true | ||||||
| @@ -185,7 +186,7 @@ abstract class BasePlayerGestureListener( | |||||||
|                 playerImpl.updateScreenSize() |                 playerImpl.updateScreenSize() | ||||||
|  |  | ||||||
|                 playerImpl.updatePopupSize( |                 playerImpl.updatePopupSize( | ||||||
|                     Math.min(playerImpl.screenWidth.toDouble(), newWidth).toInt(), |                     min(playerImpl.screenWidth.toDouble(), newWidth).toInt(), | ||||||
|                     -1) |                     -1) | ||||||
|                 return true |                 return true | ||||||
|             } |             } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 TacoTheDank
					TacoTheDank