@Override public void onStop() { super.onStop(); if (AppData.defaultUser != null) { usernameOnStop = AppData.defaultUser.getUsername(); } showOfflineOnStop = PrefsManager.showOfflineCameras(this); }