Simplify snippet generation.
authorJason parks <jparks@google.com>
Thu, 28 Oct 2010 21:15:06 +0000 (16:15 -0500)
committerJason parks <jparks@google.com>
Thu, 28 Oct 2010 21:17:46 +0000 (16:17 -0500)
commita6855221fb6e5c6c19d31283a18ced44cccdf442
treed271027a04840dfc25bc782f99a5291107b84ff9
parent7a5bab2668d2f0751617cded7ab440161486d423
Simplify snippet generation.

Made ParsedNdefMessage a concrete class and moved
the getSnippet() method to ParsedNdefRecord. There
was no need for another set of classes that knew
how to generate a snippet.

ParsedNdefMessage now contains the logic for which
record to pick for the snippet.
13 files changed:
src/com/android/apps/tag/message/EmptyMessage.java [deleted file]
src/com/android/apps/tag/message/NdefMessageParser.java
src/com/android/apps/tag/message/ParsedNdefMessage.java
src/com/android/apps/tag/message/SmartPosterMessage.java [deleted file]
src/com/android/apps/tag/message/TextMessage.java [deleted file]
src/com/android/apps/tag/message/UnknownMessage.java [deleted file]
src/com/android/apps/tag/message/UriMessage.java [deleted file]
src/com/android/apps/tag/record/MimeRecord.java
src/com/android/apps/tag/record/ParsedNdefRecord.java
src/com/android/apps/tag/record/SmartPoster.java
src/com/android/apps/tag/record/TextRecord.java
src/com/android/apps/tag/record/UriRecord.java
src/com/android/apps/tag/record/VCardRecord.java