Fix native MKB not working in Android app

This commit is contained in:
redphx
2024-12-07 10:31:28 +07:00
parent 4648126f03
commit 557a38214d
2 changed files with 2 additions and 2 deletions

View File

@@ -406,7 +406,7 @@ function main() {
}
// Start PointerProviderServer
if (getPref(PrefKey.MKB_ENABLED) && AppInterface) {
if (AppInterface && (getPref(PrefKey.MKB_ENABLED) || getPref<NativeMkbMode>(PrefKey.NATIVE_MKB_MODE) === NativeMkbMode.ON)) {
STATES.pointerServerPort = AppInterface.startPointerServer() || 9269;
BxLogger.info('startPointerServer', 'Port', STATES.pointerServerPort.toString());
}