Messaging: Remove GServices
We don't have an actual implementation returning anything but the defaults, so apply the defaults directly anywhere we need them Change-Id: Ic651b4b13977799f2f4d2c702c430798fbff77f8
This commit is contained in:
@@ -51,7 +51,6 @@ import com.android.messaging.sms.MmsUtils;
|
||||
import com.android.messaging.ui.UIIntents;
|
||||
import com.android.messaging.util.Assert;
|
||||
import com.android.messaging.util.AvatarUriUtil;
|
||||
import com.android.messaging.util.BugleGservices;
|
||||
import com.android.messaging.util.BugleGservicesKeys;
|
||||
import com.android.messaging.util.ContentType;
|
||||
import com.android.messaging.util.ConversationIdSet;
|
||||
@@ -1009,13 +1008,9 @@ public abstract class MessageNotificationState extends NotificationState {
|
||||
|
||||
private static int getMaxMessagesInConversationNotification() {
|
||||
if (!BugleNotifications.isWearCompanionAppInstalled()) {
|
||||
return BugleGservices.get().getInt(
|
||||
BugleGservicesKeys.MAX_MESSAGES_IN_CONVERSATION_NOTIFICATION,
|
||||
BugleGservicesKeys.MAX_MESSAGES_IN_CONVERSATION_NOTIFICATION_DEFAULT);
|
||||
return BugleGservicesKeys.MAX_MESSAGES_IN_CONVERSATION_NOTIFICATION_DEFAULT;
|
||||
}
|
||||
return BugleGservices.get().getInt(
|
||||
BugleGservicesKeys.MAX_MESSAGES_IN_CONVERSATION_NOTIFICATION_WITH_WEARABLE,
|
||||
BugleGservicesKeys.MAX_MESSAGES_IN_CONVERSATION_NOTIFICATION_WITH_WEARABLE_DEFAULT);
|
||||
return BugleGservicesKeys.MAX_MESSAGES_IN_CONVERSATION_NOTIFICATION_WITH_WEARABLE_DEFAULT;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user