mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat(android): edge-to-edge
Squashed from feat/edge-to-edge and resolved conflicts
This commit is contained in:
@@ -2,7 +2,7 @@ import '../../globals';
|
||||
import { setActivityCallbacks } from '.';
|
||||
import { Application } from '../../application';
|
||||
import { isEmbedded } from '../embedding';
|
||||
|
||||
import { enableEdgeToEdge } from '../../utils/android';
|
||||
const EMPTY_FN = () => {};
|
||||
declare const com: any;
|
||||
|
||||
@@ -22,6 +22,7 @@ if (!isEmbedded()) {
|
||||
// Set isNativeScriptActivity in onCreate.
|
||||
// The JS constructor might not be called because the activity is created from Android.
|
||||
this.isNativeScriptActivity = true;
|
||||
enableEdgeToEdge(this);
|
||||
if (!this._callbacks) {
|
||||
setActivityCallbacks(this);
|
||||
}
|
||||
@@ -78,6 +79,7 @@ if (!isEmbedded()) {
|
||||
// Set isNativeScriptActivity in onCreate.
|
||||
// The JS constructor might not be called because the activity is created from Android.
|
||||
activity.isNativeScriptActivity = true;
|
||||
enableEdgeToEdge(this);
|
||||
if (!activity._callbacks) {
|
||||
setActivityCallbacks(activity);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user