Files
discord-decomp/sources/modules/activities/native/doesOrientationMatchLockState.tsx
T
2026-07-27 16:20:00 +03:00

18 lines
1.2 KiB
TypeScript

/* Metro module 10705; source: modules/activities/native/doesOrientationMatchLockState.tsx; dependencies: [4237, 2] */
function _fun82264(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#82264, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10891:6, offset: 0x01ef13e3, size: 109 bytes, params: 8, frame: 18
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const env0_0 = (require(4237) /* metro dependency 4237: Constants */).OrientationLockState;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/activities/native/doesOrientationMatchLockState.tsx');
exports.default = doesOrientationMatchLockState;
}
function doesOrientationMatchLockState(a0, a1) { // fn#82265, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10891:230, offset: 0x01ef1450, size: 89 bytes, params: 3, frame: 5
const value = a0;
let r0 = a1 == null || a1 === OrientationLockState.UNLOCKED;
r0 = !r0 ? !value && a1 === OrientationLockState.PORTRAIT : r0;
r0 = !r0 ? value && a1 === OrientationLockState.LANDSCAPE : r0;
return r0;
}