Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ public data class ScreenshotRecorderConfig(
private fun Int.adjustToBlockSize(): Int {
val remainder = this % 16
return if (remainder <= 8) {
this - remainder
maxOf(16, this - remainder)
} else {
this + (16 - remainder)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ internal class WindowRecorder(
}

override fun onRootViewsChanged(root: View, added: Boolean) {
if (root.phoneWindow == null) {
options.logger.log(WARNING, "Root view does not have a phone window, skipping.")
return
}
rootViewsLock.acquire().use {
if (added) {
rootViews.add(WeakReference(root))
Expand Down
Loading