Skip to content

Instantly share code, notes, and snippets.

@skydoves
Created January 20, 2022 05:25
Show Gist options
  • Save skydoves/7472d21437a12668a81e035ea30960cd to your computer and use it in GitHub Desktop.
Save skydoves/7472d21437a12668a81e035ea30960cd to your computer and use it in GitHub Desktop.
window_table_top
// Copyright 2022 Google LLC.
// SPDX-License-Identifier: Apache-2.0
private fun isTableTopMode(foldFeature: FoldingFeature) =
foldFeature.state == FoldingFeature.State.HALF_OPENED &&
foldFeature.orientation == FoldingFeature.Orientation.HORIZONTAL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment