-
-
Save skydoves/9f6da3b697de36100b7960c81173c38a to your computer and use it in GitHub Desktop.
window_book_mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2022 Google LLC. | |
// SPDX-License-Identifier: Apache-2.0 | |
private fun isBookMode(foldFeature: FoldingFeature) = | |
foldFeature.state == FoldingFeature.State.HALF_OPENED && | |
foldFeature.orientation == FoldingFeature.Orientation.VERTICAL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment