Skip to content

Commit

Permalink
fix(android): regression fix
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Jun 14, 2024
1 parent 805c185 commit 55e3019
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ui-document-picker/index.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 55e3019

Please sign in to comment.