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

Commit 05b8de85 authored by Julia Reynolds's avatar Julia Reynolds
Browse files

Add more logging around remoteview limits

Test: look at logcat
Change-Id: Icf36d1d3132f6541d81d21eb53b96e302e45f1f3
parent 25e071c7
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -5007,12 +5007,13 @@ public class NotificationManagerService extends SystemService {
        final int contentViewSize = contentView.estimateMemoryUsage();
        if (contentViewSize > mWarnRemoteViewsSizeBytes
                && contentViewSize < mStripRemoteViewsSizeBytes) {
            Slog.w(TAG, "RemoteViews too large on tag: " + tag + " id: " + id
            Slog.w(TAG, "RemoteViews too large on pkg: " + pkg + " tag: " + tag + " id: " + id
                    + " this might be stripped in a future release");
        }
        if (contentViewSize >= mStripRemoteViewsSizeBytes) {
            mUsageStats.registerImageRemoved(pkg);
            Slog.w(TAG, "Removed too large RemoteViews on tag: " + tag + " id: " + id);
            Slog.w(TAG,
                    "Removed too large RemoteViews on pkg: " + pkg + " tag: " + tag + " id: " + id);
            return true;
        }
        return false;