···8484}
8585if (isAndroid) {
8686 // iOS is handled by the config plugin -sfn
8787- ScreenOrientation.lockAsync(ScreenOrientation.OrientationLock.PORTRAIT_UP)
8787+ ScreenOrientation.lockAsync(
8888+ ScreenOrientation.OrientationLock.PORTRAIT_UP,
8989+ ).catch(error =>
9090+ logger.debug('Could not lock orientation', {safeMessage: error}),
9191+ )
8892}
89939094/**
+10-4
src/alf/util/systemUI.ts
···11import * as SystemUI from 'expo-system-ui'
22import {type Theme} from '@bsky.app/alf'
3344+import {logger} from '#/logger'
45import {isAndroid} from '#/platform/detection'
5667export function setSystemUITheme(themeType: 'theme' | 'lightbox', t: Theme) {
78 if (isAndroid) {
88- if (themeType === 'theme') {
99- SystemUI.setBackgroundColorAsync(t.atoms.bg.backgroundColor)
1010- } else {
1111- SystemUI.setBackgroundColorAsync('black')
99+ try {
1010+ if (themeType === 'theme') {
1111+ SystemUI.setBackgroundColorAsync(t.atoms.bg.backgroundColor)
1212+ } else {
1313+ SystemUI.setBackgroundColorAsync('black')
1414+ }
1515+ } catch (error) {
1616+ // Can reject with 'The current activity is no longer available' - no big deal
1717+ logger.debug('Could not set system UI theme', {safeMessage: error})
1218 }
1319 }
1420}