feat(mobile): optimized thumbnail widget (#21073)
* thumbnail widget * use animation ticker, improvements * use static thumbnail resolution for now * fix android sample size * free memory sooner * formatting * tweaks * wait for disposal * remove debug prints * take two on animation * fix * remote constructor * missed one * unused imports * unnecessary import * formatting
This commit is contained in:
@@ -221,8 +221,8 @@ class ThumbnailsImpl(context: Context) : ThumbnailApi {
|
||||
return 1 shl max(
|
||||
0, floor(
|
||||
min(
|
||||
log2(fullWidth / (2.0 * reqWidth)),
|
||||
log2(fullHeight / (2.0 * reqHeight)),
|
||||
log2(fullWidth / reqWidth.toDouble()),
|
||||
log2(fullHeight / reqHeight.toDouble()),
|
||||
)
|
||||
).toInt()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user