forked from facebook/react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert WindowOverlayCompat to Kotlin (facebook#43749)
Summary: Pull Request resolved: facebook#43749 Convert Java to Kotlin: `react/devsupport/WindowOverlayCompat.java` Changelog: [Internal] internal Reviewed By: rshest Differential Revision: D55604746
- Loading branch information
1 parent
0b23ff6
commit d0f1c9d
Showing
2 changed files
with
27 additions
and
27 deletions.
There are no files selected for viewing
27 changes: 0 additions & 27 deletions
27
...-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/WindowOverlayCompat.java
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
...ct-native/ReactAndroid/src/main/java/com/facebook/react/devsupport/WindowOverlayCompat.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |