Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

package com.facebook.react.devsupport

import android.os.Build
import android.view.WindowManager

/**
* Compatibility wrapper for apps targeting API level 26 or later. See
* https://developer.android.com/about/versions/oreo/android-8.0-changes.html#cwt
*/
internal object WindowOverlayCompat {

private const val TYPE_APPLICATION_OVERLAY = 2038

@Suppress("DEPRECATION")
@JvmField
val TYPE_SYSTEM_OVERLAY: Int =
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O)
WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY
else TYPE_APPLICATION_OVERLAY
}