modified: client/src/pages/os.tsx

This commit is contained in:
MrPiglr 2026-01-29 17:42:30 -07:00
parent d1254106eb
commit bad838c659

View file

@ -1184,13 +1184,10 @@ export default function AeThexOS() {
const dragX = useMotionValue(0);
const dragOpacity = useTransform(dragX, [-200, 0, 200], [0.5, 1, 0.5]);
// Native Android App Layout
if (layout.isMobile) {
const activeWindows = windows.filter(w => !w.minimized);
const currentWindow = activeWindows[activeWindows.length - 1];
// Hide system navigation bar on mount (Android only)
// Hide system navigation bar on mount (Android only) - MUST be outside conditional
useEffect(() => {
if (!layout.isMobile) return;
const setupStatusBar = async () => {
try {
// Hide the status bar for full immersion
@ -1215,7 +1212,12 @@ export default function AeThexOS() {
// Show status bar when leaving
StatusBar.show().catch(() => {});
};
}, []);
}, [layout.isMobile]);
// Native Android App Layout
if (layout.isMobile) {
const activeWindows = windows.filter(w => !w.minimized);
const currentWindow = activeWindows[activeWindows.length - 1];
return (
<div className="h-screen w-screen bg-black overflow-hidden flex flex-col">