about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNick Manos <nickpmanos@gmail.com>2024-04-13 20:02:44 -0400
committerGitHub <noreply@github.com>2024-04-13 17:02:44 -0700
commitcb3f246822516bfca5b77d0f291bc24b27b4c48b (patch)
treeab51311e245a881492ab871910b4ade82a1bfbc5 /src
parent3b9c5ceeb3c5944e5de7b3fdec9be83d2a3da2f1 (diff)
downloadvoidsky-cb3f246822516bfca5b77d0f291bc24b27b4c48b.tar.zst
Fix Android in-app browser closing when switching apps (#3546)
Diffstat (limited to 'src')
-rw-r--r--src/state/preferences/in-app-browser.tsx8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/state/preferences/in-app-browser.tsx b/src/state/preferences/in-app-browser.tsx
index 2398f1f81..73c4bbbe7 100644
--- a/src/state/preferences/in-app-browser.tsx
+++ b/src/state/preferences/in-app-browser.tsx
@@ -1,15 +1,16 @@
 import React from 'react'
-import * as persisted from '#/state/persisted'
 import {Linking} from 'react-native'
 import * as WebBrowser from 'expo-web-browser'
+
 import {isNative} from '#/platform/detection'
-import {useModalControls} from '../modals'
+import * as persisted from '#/state/persisted'
 import {usePalette} from 'lib/hooks/usePalette'
 import {
+  createBskyAppAbsoluteUrl,
   isBskyRSSUrl,
   isRelativeUrl,
-  createBskyAppAbsoluteUrl,
 } from 'lib/strings/url-helpers'
+import {useModalControls} from '../modals'
 
 type StateContext = persisted.Schema['useInAppBrowser']
 type SetContext = (v: persisted.Schema['useInAppBrowser']) => void
@@ -78,6 +79,7 @@ export function useOpenLink() {
             presentationStyle:
               WebBrowser.WebBrowserPresentationStyle.FULL_SCREEN,
             toolbarColor: pal.colors.backgroundLight,
+            createTask: false,
           })
           return
         }