Update Tag application for getTechnology API change.
Nick Pelly [Mon, 10 Jan 2011 06:28:45 +0000 (17:28 +1100)]
Change-Id: Iabb00848b97ce262e8a0c146197d7d6bcd4adb07

src/com/android/apps/tag/TagViewer.java

index e0af182..d2c39ac 100644 (file)
@@ -284,7 +284,7 @@ public class TagViewer extends Activity implements OnClickListener {
             cursor.close();
             NdefMessage msg = new NdefMessage(bytes);
 
-            Ndef ndef = (Ndef) tag.getTechnology(adapter, TagTechnology.NDEF);
+            Ndef ndef = (Ndef) adapter.getTechnology(tag, TagTechnology.NDEF);
             if (ndef != null) {
                 ndef.connect();
                 if (!ndef.isWritable()) {
@@ -297,7 +297,7 @@ public class TagViewer extends Activity implements OnClickListener {
                         .show();
                 return true;
             } else {
-                NdefFormatable format = (NdefFormatable) tag.getTechnology(adapter,
+                NdefFormatable format = (NdefFormatable) adapter.getTechnology(tag,
                         TagTechnology.NDEF_FORMATABLE);
                 if (format != null) {
                     format.connect();