From 55e30196801ec0a8648bc778ed1ed47b0c0d68ee Mon Sep 17 00:00:00 2001 From: farfromrefug <> Date: Fri, 14 Jun 2024 10:42:48 +0200 Subject: [PATCH] fix(android): regression fix --- src/ui-document-picker/index.android.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ui-document-picker/index.android.ts b/src/ui-document-picker/index.android.ts index b427efc..51ca2e1 100644 --- a/src/ui-document-picker/index.android.ts +++ b/src/ui-document-picker/index.android.ts @@ -66,7 +66,7 @@ function prepareIntent(intent: android.content.Intent, options: CommonPickerOpti } export function openFilePicker(params: FilePickerOptions = {}) { - const context = Utils.android.getApplicationContext(); + const context = Application.android.startActivity; const FILE_CODE = 1231; if (!Intent) { @@ -177,7 +177,7 @@ function updatePersistableUris( } } export function pickFolder(params: FolderPickerOptions = {}) { - const context = Utils.android.getApplicationContext(); + const context = Application.android.startActivity; const FOLDER_CODE = 1232; if (!Intent) { Intent = android.content.Intent; @@ -244,7 +244,7 @@ export async function saveFile(params: SaveFileOptions) { // } else { // await tempFile.write(params.data); // } - const context = Utils.android.getApplicationContext(); + const context = Application.android.startActivity; const FILE_CODE = 1233; if (!Intent) {