Skip to content

Commit

Permalink
#1194 fix: disable action for collapsing status bar on Android 14
Browse files Browse the repository at this point in the history
  • Loading branch information
sds100 committed Jul 7, 2024
1 parent 4621b52 commit 1c69746
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,9 @@ object ActionUtils {
fun getMaxApi(id: ActionId): Int = when (id) {
ActionId.SHOW_KEYBOARD_PICKER -> Build.VERSION_CODES.P

// The global action still fails even though the API exists in SDK 34.
ActionId.COLLAPSE_STATUS_BAR -> Build.VERSION_CODES.TIRAMISU

else -> Constants.MAX_API
}

Expand Down
2 changes: 1 addition & 1 deletion docs/user-guide/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ This will increase or decrease a specific one of these volume streams.

### Expand/toggle quick settings

### Collapse the status bar
### Collapse the status bar (up to Android 14)

### Play/pause/toggle media

Expand Down

0 comments on commit 1c69746

Please sign in to comment.