reenable wake-from-background OTA on Android
This commit is contained in:
@@ -12,7 +12,7 @@ import {
|
|||||||
|
|
||||||
import {isNetworkError} from '#/lib/strings/errors'
|
import {isNetworkError} from '#/lib/strings/errors'
|
||||||
import {logger} from '#/logger'
|
import {logger} from '#/logger'
|
||||||
import {IS_ANDROID, IS_IOS, IS_TESTFLIGHT} from '#/env'
|
import {IS_IOS, IS_TESTFLIGHT} from '#/env'
|
||||||
|
|
||||||
const MINIMUM_MINIMIZE_TIME = 15 * 60e3
|
const MINIMUM_MINIMIZE_TIME = 15 * 60e3
|
||||||
|
|
||||||
@@ -192,13 +192,6 @@ export function useOTAUpdates() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// TEMP: disable wake-from-background OTA loading on Android.
|
|
||||||
// This is causing a crash when the thread view is open due to
|
|
||||||
// `maintainVisibleContentPosition`. See repro repo for more details:
|
|
||||||
// https://github.com/mozzius/ota-crash-repro
|
|
||||||
// Old Arch only - re-enable once we're on the New Archictecture! -sfn
|
|
||||||
if (IS_ANDROID) return
|
|
||||||
|
|
||||||
const subscription = AppState.addEventListener(
|
const subscription = AppState.addEventListener(
|
||||||
'change',
|
'change',
|
||||||
async nextAppState => {
|
async nextAppState => {
|
||||||
|
|||||||
Reference in New Issue
Block a user