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

Commit 1ec87b3c authored by Julia Reynolds's avatar Julia Reynolds Committed by Android (Google) Code Review
Browse files

Merge "Allow somewhat larger RemoteViews"

parents a9da1921 699c1e4e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4319,11 +4319,11 @@

    <!-- Trigger a warning for notifications with RemoteView objects that are larger in bytes than
    this value (default 1MB)-->
    <integer name="config_notificationWarnRemoteViewSizeBytes">1000000</integer>
    <integer name="config_notificationWarnRemoteViewSizeBytes">2000000</integer>

    <!-- Strip notification RemoteView objects that are larger in bytes than this value (also log)
    (default 2MB) -->
    <integer name="config_notificationStripRemoteViewSizeBytes">2000000</integer>
    <integer name="config_notificationStripRemoteViewSizeBytes">5000000</integer>

    <!-- Contains a blacklist of apps that should not get pre-installed carrier app permission
         grants, even if the UICC claims that the app should be privileged. See b/138150105 -->
+2 −2
Original line number Diff line number Diff line
@@ -5112,8 +5112,8 @@ public class NotificationManagerService extends SystemService {
        }
        if (contentViewSize >= mStripRemoteViewsSizeBytes) {
            mUsageStats.registerImageRemoved(pkg);
            Slog.w(TAG,
                    "Removed too large RemoteViews on pkg: " + pkg + " tag: " + tag + " id: " + id);
            Slog.w(TAG, "Removed too large RemoteViews (" + contentViewSize + " bytes) on pkg: "
                    + pkg + " tag: " + tag + " id: " + id);
            return true;
        }
        return false;