mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-30 23:03:00 +00:00 
			
		
		
		
	Code improvements
This commit is contained in:
		| @@ -50,15 +50,8 @@ public class MediaSessionManager { | ||||
|     } | ||||
|  | ||||
|     @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP) | ||||
|     public void setLockScreenArt( | ||||
|             NotificationCompat.Builder builder, | ||||
|             @Nullable Bitmap thumbnailBitmap | ||||
|     ) { | ||||
|         if (thumbnailBitmap == null) { | ||||
|             return; | ||||
|         } | ||||
|  | ||||
|         if (!mediaSession.isActive()) { | ||||
|     public void setLockScreenArt(NotificationCompat.Builder builder, @Nullable Bitmap thumbnailBitmap) { | ||||
|         if (thumbnailBitmap == null || !mediaSession.isActive()) { | ||||
|             return; | ||||
|         } | ||||
|  | ||||
|   | ||||
| @@ -22,11 +22,11 @@ public class BitmapUtils { | ||||
|         float newYScale; | ||||
|  | ||||
|         if (yScale > xScale) { | ||||
|             newXScale = (1.0f / yScale) * xScale; | ||||
|             newXScale = xScale / yScale; | ||||
|             newYScale = 1.0f; | ||||
|         } else { | ||||
|             newXScale = 1.0f; | ||||
|             newYScale = (1.0f / xScale) * yScale; | ||||
|             newYScale = yScale / xScale; | ||||
|         } | ||||
|  | ||||
|         float scaledWidth = newXScale * sourceWidth; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 TobiGr
					TobiGr