Messaging: Remove compatibility for old android versions
Change-Id: Id9065d60525a509271a0e64c0e349e857cb998e2
This commit is contained in:
@@ -39,7 +39,6 @@ import android.util.Log;
|
||||
import android.util.SparseArray;
|
||||
import android.util.SparseIntArray;
|
||||
|
||||
import com.android.messaging.datamodel.data.ParticipantData;
|
||||
import com.android.messaging.mmslib.InvalidHeaderValueException;
|
||||
import com.android.messaging.mmslib.MmsException;
|
||||
import com.android.messaging.mmslib.SqliteWrapper;
|
||||
@@ -51,7 +50,6 @@ import com.android.messaging.sms.MmsSmsUtils;
|
||||
import com.android.messaging.util.Assert;
|
||||
import com.android.messaging.util.ContentType;
|
||||
import com.android.messaging.util.LogUtil;
|
||||
import com.android.messaging.util.OsUtil;
|
||||
import com.android.messaging.util.UriUtil;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
@@ -1481,15 +1479,8 @@ public class PduPersister {
|
||||
}
|
||||
// Record whether this mms message is a simple plain text or not. This is a hint for the
|
||||
// UI.
|
||||
if (OsUtil.isAtLeastJB_MR1()) {
|
||||
values.put(Mms.TEXT_ONLY, textOnly ? 1 : 0);
|
||||
}
|
||||
|
||||
if (OsUtil.isAtLeastL_MR1()) {
|
||||
values.put(Mms.SUBSCRIPTION_ID, subId);
|
||||
} else {
|
||||
Assert.equals(ParticipantData.DEFAULT_SELF_SUB_ID, subId);
|
||||
}
|
||||
values.put(Mms.TEXT_ONLY, textOnly ? 1 : 0);
|
||||
values.put(Mms.SUBSCRIPTION_ID, subId);
|
||||
|
||||
Uri res = null;
|
||||
if (existingUri) {
|
||||
|
||||
Reference in New Issue
Block a user