Skip to content

Commit

Permalink
Detect app compat tooltip
Browse files Browse the repository at this point in the history
Fixes #31
  • Loading branch information
pyricau committed Apr 16, 2022
1 parent 7366444 commit ca34d70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions curtains/src/main/java/curtains/Windows.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ val View.windowType: WindowType
when {
title == "Toast" -> TOAST
title == tooltipString -> TOOLTIP
// App compat tooltip uses the class simple name.
title == "TooltipPopup" -> TOOLTIP
title.startsWith("PopupWindow:") -> POPUP_WINDOW
else -> UNKNOWN
}
Expand Down

0 comments on commit ca34d70

Please sign in to comment.