fix: color scheme handling on mobile (#1902)
This commit is contained in:
@@ -289,6 +289,10 @@ export class WebApplication extends SNApplication implements WebApplicationInter
|
||||
setViewportHeightWithFallback()
|
||||
}
|
||||
|
||||
handleMobileColorSchemeChangeEvent() {
|
||||
void this.getThemeService().handleMobileColorSchemeChangeEvent()
|
||||
}
|
||||
|
||||
private async lockApplicationAfterMobileEventIfApplicable(): Promise<void> {
|
||||
const isLocked = await this.isLocked()
|
||||
if (isLocked) {
|
||||
|
||||
@@ -68,6 +68,9 @@ export class MobileWebReceiver {
|
||||
case ReactNativeToWebEvent.AndroidBackButtonPressed:
|
||||
void this.application.handleAndroidBackButtonPressed()
|
||||
break
|
||||
case ReactNativeToWebEvent.ColorSchemeChanged:
|
||||
void this.application.handleMobileColorSchemeChangeEvent()
|
||||
break
|
||||
|
||||
default:
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user