Skip to content

Commit c181854

Browse files
authored
fix(android): use current activity (#22)
1 parent dde1f43 commit c181854

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/nativescript-in-app-review/index.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class InAppReview extends InAppReviewCommon {
1717
}
1818

1919
const reviewInfo = task.getResult();
20-
const flow = manager.launchReviewFlow(Application.android.foregroundActivity, reviewInfo);
20+
const flow = manager.launchReviewFlow(Utils.android.getCurrentActivity(), reviewInfo);
2121

2222
flow.addOnCompleteListener(
2323
new com.google.android.gms.tasks.OnCompleteListener({

0 commit comments

Comments
 (0)