Merge "Update Insets API call due to signature change" into main

This commit is contained in:
Yunfan Chen
2025-05-08 20:42:57 -07:00
committed by Android (Google) Code Review
@@ -20,7 +20,6 @@ import android.os.RemoteException
import android.util.Log
import android.view.InsetsState
import android.view.WindowInsets
import com.android.launcher3.Utilities
import com.android.launcher3.config.FeatureFlags
import com.android.launcher3.util.Executors
@@ -55,10 +54,19 @@ class HomeVisibilityState {
},
)
}
override fun onDisplayInsetsChanged(insetsState: InsetsState) {
val bottomInset = insetsState.calculateInsets(insetsState.displayFrame,
WindowInsets.Type.navigationBars(), false).bottom
navbarInsetPosition = insetsState.displayFrame.bottom - bottomInset
val displayFrame = insetsState.displayFrame
val bottomInset =
insetsState
.calculateInsets(
displayFrame,
displayFrame,
WindowInsets.Type.navigationBars(),
false,
)
.bottom
navbarInsetPosition = displayFrame.bottom - bottomInset
}
}
)