Skip to content

Commit

Permalink
Remove support for Android API < 23 in WindowOverlayCompat (#39673)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #39673

Since minsdk version was increased to 23, we are deleting code using Android APIs < 23 for class WindowOverlayCompat

changelog: [Android][Breaking] Remove support for Android API < 23 in WindowOverlayCompat

Reviewed By: NickGerleman

Differential Revision: D48545505

fbshipit-source-id: 51246bbe5c78efc3cf7d3f1cf0a4ab31cb9c0b5c
  • Loading branch information
mdvacca authored and facebook-github-bot committed Sep 27, 2023
1 parent 2286c12 commit c359a44
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,10 @@
*/
/* package */ class WindowOverlayCompat {

private static final int ANDROID_OREO = 26;
private static final int TYPE_APPLICATION_OVERLAY = 2038;

static final int TYPE_SYSTEM_ALERT =
Build.VERSION.SDK_INT < ANDROID_OREO
? WindowManager.LayoutParams.TYPE_SYSTEM_ALERT
: TYPE_APPLICATION_OVERLAY;
static final int TYPE_SYSTEM_OVERLAY =
Build.VERSION.SDK_INT < ANDROID_OREO
Build.VERSION.SDK_INT < Build.VERSION_CODES.O
? WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY
: TYPE_APPLICATION_OVERLAY;
}

0 comments on commit c359a44

Please sign in to comment.