code: public synchronized void resetProcessingShareRequests() {
          SQLiteDatabase db = null;
          try {
              db = getWritableDatabase();
  
              // Update state back to pending.
              ContentValues values = new ContentValues();
              values.put(ShareRequestTable.COLUMN_STATE, ShareRequest.STATE_PENDING);
  
              int recordsUpdated = db.update(ShareRequestTable.NAME, values, WHERE_CLAUSE_BY_STATE,
                      new String[]{String.valueOf(ShareRequest.STATE_PROCESSING)});
  
              sLogger.log(WingsDbHelper.class, "resetProcessingShareRequests", "recordsUpdated=" + recordsUpdated);
          } catch (SQLException e) {
              // Do nothing.
          } finally {
              db.close();
          }
      }
docs: Reset all records that somehow got stuck in a processing state.