Merge "Update Insets API call due to signature change" into main
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user