Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79ed9ecf authored by Kevin's avatar Kevin
Browse files

Turn off notification in-line images for low ram devices

Bug: 77598694
Change-Id: Icdd4c2ef790d2d657f7670fa8c1b8b39b7aa62e4
Fix: 77598694
Test: manual, tested notification on gobo and sailfish
parent f6486683
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@

package com.android.internal.widget;

import android.app.ActivityManager;
import android.app.Notification;
import android.view.View;

@@ -33,7 +34,7 @@ public interface MessagingMessage extends MessagingLinearLayout.MessagingChild {

    static MessagingMessage createMessage(MessagingLayout layout,
            Notification.MessagingStyle.Message m) {
        if (hasImage(m)) {
        if (hasImage(m) && !ActivityManager.isLowRamDeviceStatic()) {
            return MessagingImageMessage.createMessage(layout, m);
        } else {
            return MessagingTextMessage.createMessage(layout, m);