Skip to content

Commit

Permalink
Get rid of idiosyncratic let usage
Browse files Browse the repository at this point in the history
  • Loading branch information
tcobbs-bentley committed Oct 24, 2023
1 parent 20e158e commit 8b2d3f9
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -624,9 +624,8 @@ open class ITMApplication(
if (activity.isInMultiWindowMode)
insetsType = insetsType or WindowInsetsCompat.Type.systemBars()

val safeAreaInsets = WindowInsetsCompat.toWindowInsetsCompat(insets, view).getInsets(insetsType)
return safeAreaInsets.let {
Quint(toDp(max(it.left, it.right)), toDp(it.left), toDp(it.right), toDp(it.top), toDp(it.bottom))
return with(WindowInsetsCompat.toWindowInsetsCompat(insets, view).getInsets(insetsType)) {
Quint(toDp(max(left, right)), toDp(left), toDp(right), toDp(top), toDp(bottom))
}
}

Expand Down

0 comments on commit 8b2d3f9

Please sign in to comment.