2026-07-27 11:26:19 +00:00
|
|
|
// Module ID: 15761
|
|
|
|
|
// Function ID: 121547
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: applyActivityOrientationLock
|
2026-07-27 11:26:19 +00:00
|
|
|
// Dependencies: [4156, 10594, 8105, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-07-27 11:26:19 +00:00
|
|
|
// Module 15761 (applyActivityOrientationLock)
|
2026-07-23 10:11:24 +00:00
|
|
|
import { OrientationLockState } from "items3";
|
|
|
|
|
|
|
|
|
|
const result = require("handleOrientationChange").fileFinishedImporting("modules/activities/native/applyActivityOrientationLock.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function applyActivityOrientationLock(arg0) {
|
2026-07-27 11:26:19 +00:00
|
|
|
let obj = require(10594) /* getIsTabletActivitySurface */;
|
2026-07-20 16:05:17 +00:00
|
|
|
if (!obj.getIsTabletActivitySurface()) {
|
|
|
|
|
if (OrientationLockState.UNLOCKED === arg0) {
|
|
|
|
|
obj = { unlockAfterRotatingToPreviousLock: true };
|
2026-07-25 08:10:48 +00:00
|
|
|
require(8105) /* handleOrientationChange */.unlockOrientation(obj);
|
|
|
|
|
const obj4 = require(8105) /* handleOrientationChange */;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else if (OrientationLockState.PORTRAIT === arg0) {
|
2026-07-25 08:10:48 +00:00
|
|
|
require(8105) /* handleOrientationChange */.lockOrientation("PORTRAIT", true);
|
|
|
|
|
const obj3 = require(8105) /* handleOrientationChange */;
|
2026-07-20 16:05:17 +00:00
|
|
|
} else if (OrientationLockState.LANDSCAPE === arg0) {
|
2026-07-25 08:10:48 +00:00
|
|
|
require(8105) /* handleOrientationChange */.lockOrientation("LANDSCAPE", true);
|
|
|
|
|
const obj2 = require(8105) /* handleOrientationChange */;
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|