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

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

Reviewed By: NickGerleman

Differential Revision: D48545505

fbshipit-source-id: 0a61a032908838cdf30165f321dbd356fc0a0fca
  • Loading branch information
mdvacca committed Sep 26, 2023
1 parent 623b197 commit a54c12e
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 a54c12e

Please sign in to comment.