Messaging: Remove compatibility for old android versions
Change-Id: Id9065d60525a509271a0e64c0e349e857cb998e2
This commit is contained in:
@@ -45,7 +45,6 @@ import com.android.messaging.util.Assert.DoesNotRunOnMainThread;
|
||||
import com.android.messaging.util.AvatarUriUtil;
|
||||
import com.android.messaging.util.ContentType;
|
||||
import com.android.messaging.util.LogUtil;
|
||||
import com.android.messaging.util.OsUtil;
|
||||
import com.android.messaging.util.PhoneUtils;
|
||||
import com.android.messaging.util.UriUtil;
|
||||
import com.android.messaging.widget.WidgetConversationProvider;
|
||||
@@ -567,7 +566,7 @@ public class BugleDatabaseOperations {
|
||||
// reading and if necessary creating the conversation.
|
||||
updateConversationRow(dbWrapper, conversationId, values);
|
||||
|
||||
if (shouldAutoSwitchSelfId && OsUtil.isAtLeastL_MR1()) {
|
||||
if (shouldAutoSwitchSelfId) {
|
||||
// Normally, the draft message compose UI trusts its UI state for providing up-to-date
|
||||
// conversation self id. Therefore, notify UI through local broadcast receiver about
|
||||
// this external change so the change can be properly reflected.
|
||||
@@ -624,7 +623,7 @@ public class BugleDatabaseOperations {
|
||||
static boolean addSelfIdAutoSwitchInfoToContentValues(final DatabaseWrapper dbWrapper,
|
||||
final MessageData message, final String conversationId, final ContentValues values) {
|
||||
// Only auto switch conversation self for incoming messages.
|
||||
if (!OsUtil.isAtLeastL_MR1() || !message.getIsIncoming()) {
|
||||
if (!message.getIsIncoming()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user