DeviceSettings: Fix screencast code