avoid shifting phone when hiding tray; hide log in build mode