Skip to content
This repository was archived by the owner on Dec 19, 2021. It is now read-only.

Commit 9e840bd

Browse files
authored
Update loading-indicator.android.ts
topmost() is deprecated, use Frame.topmost() instead
1 parent b2fe876 commit 9e840bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/loading-indicator.android.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import * as application from 'tns-core-modules/application';
22
import { Color } from 'tns-core-modules/color';
3+
import { Frame } from 'tns-core-modules/ui/frame';
34
import { fromFileOrResource } from 'tns-core-modules/image-source';
45
import { screen } from 'tns-core-modules/platform';
5-
import { topmost } from 'tns-core-modules/ui/frame';
66
import { ad as androidUtils } from 'tns-core-modules/utils/utils';
77
import { Mode, OptionsCommon } from './loading-indicator.common';
88

@@ -315,7 +315,7 @@ export class LoadingIndicator {
315315
contentView.addView(parentView);
316316
this._popOver.setContentView(contentView);
317317
const view =
318-
topmost().android.rootViewGroup || topmost().currentPage.android;
318+
Frame.topmost().android.rootViewGroup || Frame.topmost().currentPage.android;
319319

320320
// handle anchoring target view
321321
if (options.android.view) {

0 commit comments

Comments
 (0)