Commits

Piet Delport  committed 2a4c908

Update against level 17 SDK.

  • Participants
  • Parent commits cb0e4c6
  • Branches feature/initial-version

Comments (0)

Files changed (2)

File src/unhide/android/provider/Telephony.java

         public static final String SEEN = Reflector._String(_cls, "SEEN");
 
         /**
+         * Indicates whether this message has only a text part (can also have a subject) and
+         * no picture, slideshow, or sound, etc., parts. The value is a boolean, 1 or 0.
+         */
+        public static final String TEXT_ONLY = Reflector._String(_cls, "TEXT_ONLY");
+
+        /**
          * The Message-ID of the message.
          * <P>Type: TEXT</P>
          */

File tests/src/unhide/android/provider/TelephonyTest.java

         assertNotNull(Telephony.BaseMmsColumns.MESSAGE_BOX);
         assertNotNull(Telephony.BaseMmsColumns.READ);
         assertNotNull(Telephony.BaseMmsColumns.SEEN);
+        if (Build.VERSION_CODES.JELLY_BEAN_MR1 <= Build.VERSION.SDK_INT) {
+            assertNotNull(Telephony.BaseMmsColumns.TEXT_ONLY);
+        } else {
+            assertNull(Telephony.BaseMmsColumns.TEXT_ONLY);
+        }
         assertNotNull(Telephony.BaseMmsColumns.MESSAGE_ID);
         assertNotNull(Telephony.BaseMmsColumns.SUBJECT);
         assertNotNull(Telephony.BaseMmsColumns.SUBJECT_CHARSET);
     }
 
     public void testIntents() {
-        assertNotNull(Telephony.Intents._cls);
+        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_BEAN_MR1) {
+            assertNotNull(Telephony.Intents._cls);
 
-        assertNotNull(Telephony.Intents.SECRET_CODE_ACTION);
-        assertNotNull(Telephony.Intents.SPN_STRINGS_UPDATED_ACTION);
-        assertNotNull(Telephony.Intents.EXTRA_SHOW_PLMN);
-        assertNotNull(Telephony.Intents.EXTRA_PLMN);
-        assertNotNull(Telephony.Intents.EXTRA_SHOW_SPN);
-        assertNotNull(Telephony.Intents.EXTRA_SPN);
+            assertNotNull(Telephony.Intents.SECRET_CODE_ACTION);
+            assertNotNull(Telephony.Intents.SPN_STRINGS_UPDATED_ACTION);
+            assertNotNull(Telephony.Intents.EXTRA_SHOW_PLMN);
+            assertNotNull(Telephony.Intents.EXTRA_PLMN);
+            assertNotNull(Telephony.Intents.EXTRA_SHOW_SPN);
+            assertNotNull(Telephony.Intents.EXTRA_SPN);
+        } else {
+            assertNull(Telephony.Intents._cls);
+        }
     }
 
 }