diff --git a/packages/core/platforms/android/core.aar b/packages/core/platforms/android/core.aar new file mode 100644 index 000000000..d76bd6de9 Binary files /dev/null and b/packages/core/platforms/android/core.aar differ diff --git a/packages/core/ui/layouts/root-layout/index.d.ts b/packages/core/ui/layouts/root-layout/index.d.ts index 34c3ae5fb..59ee6fcc4 100644 --- a/packages/core/ui/layouts/root-layout/index.d.ts +++ b/packages/core/ui/layouts/root-layout/index.d.ts @@ -4,6 +4,7 @@ import { View } from '../../core/view'; export class RootLayout extends GridLayout { open(view: View, options?: RootLayoutOptions): Promise; close(view: View, exitTo?: TransitionAnimation): Promise; + topmost(): View; bringToFront(view: View, animated?: boolean): Promise; closeAll(): Promise; getShadeCover(): View; diff --git a/packages/core/ui/layouts/root-layout/root-layout-common.ts b/packages/core/ui/layouts/root-layout/root-layout-common.ts index 5049b7e4f..6f9e855aa 100644 --- a/packages/core/ui/layouts/root-layout/root-layout-common.ts +++ b/packages/core/ui/layouts/root-layout/root-layout-common.ts @@ -184,6 +184,10 @@ export class RootLayoutBase extends GridLayout { }); } + topmost(): View { + return this.popupViews.length ? this.popupViews[this.popupViews.length - 1].view : null; + } + // bring any view instance open on the rootlayout to front of all the children visually bringToFront(view: View, animated: boolean = false): Promise { return new Promise((resolve, reject) => {