[go: nahoru, domu]

Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Commit

Permalink
Small name refactor to align with the folding feature and bounds naming
Browse files Browse the repository at this point in the history
  • Loading branch information
CesarValiente committed Sep 16, 2021
1 parent 8694671 commit e404280
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,13 @@ class MainActivity : AppCompatActivity() {
binding.layoutChange.text = newLayoutInfo.toString()
if (newLayoutInfo.displayFeatures.isNotEmpty()) {
binding.configurationChanged.text = "Spanned across displays"
alignViewToDeviceFeatureBoundaries(newLayoutInfo)
alignViewToFoldingFeatureBounds(newLayoutInfo)
} else {
binding.configurationChanged.text = "One logic/physical display - unspanned"
}
}

private fun alignViewToDeviceFeatureBoundaries(newLayoutInfo: WindowLayoutInfo) {
private fun alignViewToFoldingFeatureBounds(newLayoutInfo: WindowLayoutInfo) {
val constraintLayout = binding.constraintLayout
val set = ConstraintSet()
set.clone(constraintLayout)
Expand Down

0 comments on commit e404280

Please sign in to comment.