mirror of
https://github.com/AeThex-Corporation/AeThex-OS.git
synced 2026-04-17 22:27:19 +00:00
modified: client/src/pages/os.tsx
This commit is contained in:
parent
d1254106eb
commit
bad838c659
1 changed files with 31 additions and 29 deletions
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in a new issue