Bluesky app fork with some witchin' additions 💫

disable wake-from-background OTA on Android (#9317)

authored by samuel.fm and committed by

GitHub 55e9298e c6215065

+8 -1
+8 -1
src/lib/hooks/useOTAUpdates.ts
··· 12 12 13 13 import {isNetworkError} from '#/lib/strings/errors' 14 14 import {logger} from '#/logger' 15 - import {isIOS} from '#/platform/detection' 15 + import {isAndroid, isIOS} from '#/platform/detection' 16 16 import {IS_TESTFLIGHT} from '#/env' 17 17 18 18 const MINIMUM_MINIMIZE_TIME = 15 * 60e3 ··· 192 192 if (!isEnabled || currentChannel?.startsWith('pull-request')) { 193 193 return 194 194 } 195 + 196 + // TEMP: disable wake-from-background OTA loading on Android. 197 + // This is causing a crash when the thread view is open due to 198 + // `maintainVisibleContentPosition`. See repro repo for more details: 199 + // https://github.com/mozzius/ota-crash-repro 200 + // Old Arch only - re-enable once we're on the New Archictecture! -sfn 201 + if (isAndroid) return 195 202 196 203 const subscription = AppState.addEventListener( 197 204 'change',