private static void tryCloseCursor(Cursor c) {
    if (c != null && !c.isClosed()) {
      c.close();
    }
  }
Closes the cursor if it is not null and not closed.
java/com/google/android/apps/authenticator/otp/AccountDb.java