Пример #1
0
 private int getStateTxtDrawable(CameraInfo info) {
   if (info.getPwdIsRight()) {
     return info.getIsOnline() ? R.string.online : R.string.offline;
   } else {
     return R.string.pwd_wrong;
   }
 }
Пример #2
0
 private int getStateDrawable(CameraInfo info) {
   if (info.getPwdIsRight()) {
     return info.getIsOnline() ? R.drawable.avs_status_connected : R.drawable.avs_status_unknow;
   } else {
     return R.drawable.avs_status_pwderror;
   }
 }