|  |  | @@ -226,6 +226,13 @@ public class DBService { | 
            
            
              | 226 | 226 |                          + DBHelper.PHOTO_INFO_COLUMNS.CAPTURE_TIME + " desc limit 1 ", null); | 
            
            
              | 227 | 227 |                  if (c.moveToNext()) { | 
            
            
              | 228 | 228 |                      photoBean = cursor2PhotoBean(c); | 
            
            
              |  | 229 | +                }else { | 
            
            
              |  | 230 | +                    c = db.rawQuery("select * from " + DBHelper.PHOTO_INFO_TABLE +  " where " | 
            
            
              |  | 231 | +                            + DBHelper.PHOTO_INFO_COLUMNS.UPLOADED_STATUS + " = '" + -1 + "'"+"  order by " | 
            
            
              |  | 232 | +                            + DBHelper.PHOTO_INFO_COLUMNS.CAPTURE_TIME + " desc limit 1 ", null); | 
            
            
              |  | 233 | +                    if (c.moveToNext()) { | 
            
            
              |  | 234 | +                        photoBean = cursor2PhotoBean(c); | 
            
            
              |  | 235 | +                    } | 
            
            
              | 229 | 236 |                  } | 
            
            
              | 230 | 237 |                  db.setTransactionSuccessful(); | 
            
            
              | 231 | 238 |              } catch (Exception e) { |