<p dir="auto"><strong>4.13.2</strong>:</p>

<p dir="auto">Running <code class="notranslate">./gradlew lint</code> is failing due to missing permission in Glide. By the way why do Glide need to use Notification?</p>

<p dir="auto"><strong>Glide load line / <code class="notranslate">GlideModule</code> (if any) / list Adapter code (if any)</strong>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Fetching images"><pre class="notranslate"><code class="notranslate">Fetching images
</code></pre></div>

<p dir="auto"><strong>Layout XML</strong>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="N/A"><pre class="notranslate"><code class="notranslate">N/A
</code></pre></div>

<p dir="auto"><strong>Stack trace / LogCat</strong>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt; Task :app:libs:AndroidFirebase:lintDebug FAILED
C:\Users\jense\.gradle\caches\transforms-3\72c1d08f8d878ae1ba2736907b26e15a\transformed\jetified-glide-4.13.2\jars\classes.jar: Error: When targeting Android 13 or higher, posting a pe
rmission requires holding the POST_NOTIFICATIONS permission (usage from com.bumptech.glide.request.target.NotificationTarget) [NotificationPermission]

   Explanation for issues of type &quot;NotificationPermission&quot;:
   When targeting Android 13 and higher, posting permissions requires holding
   the runtime permission android.permission.POST_NOTIFICATIONS.

1 errors, 0 warnings"><pre class="notranslate"><code class="notranslate">&gt; Task :app:libs:AndroidFirebase:lintDebug FAILED
C:\Users\jense\.gradle\caches\transforms-3\72c1d08f8d878ae1ba2736907b26e15a\transformed\jetified-glide-4.13.2\jars\classes.jar: Error: When targeting Android 13 or higher, posting a pe
rmission requires holding the POST_NOTIFICATIONS permission (usage from com.bumptech.glide.request.target.NotificationTarget) [NotificationPermission]

   Explanation for issues of type "NotificationPermission":
   When targeting Android 13 and higher, posting permissions requires holding
   the runtime permission android.permission.POST_NOTIFICATIONS.

1 errors, 0 warnings
</code></pre></div>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sjudd/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sjudd">@sjudd</a> Ok so there's one last side effect remaining after <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="249890287" data-permission-text="Title is private" data-url="https://github.com/bumptech/glide/issues/2245" data-hovercard-type="issue" data-hovercard-url="/bumptech/glide/issues/2245/hovercard" href="https://github.com/bumptech/glide/issues/2245">#2245</a></p>
<p dir="auto">Opening a new issue as it's a special case, that will maybe needs something on my side to workaround.</p>
<p dir="auto">As explained on previous issues, I do have a special model that handles some connexion states internaly.<br>
And those states as they do not change the actual picture data, are not handled in the model hashcode/equals so that memory cache can properly be used.</p>
<p dir="auto">The problem is that the restart of the query after your patch still use the previous model and not the new one with the updated internal flags so does not work.</p>
<ol dir="auto">
<li>The restart can maybe be updated to use the new model, even if for Glide it's the same as model could have internal states.</li>
<li>Adding a way to indicate a cacheKey for the model. To allow different hashcode/equals to indicate when the model is actually different, but still allow memory cache to use the same data as the picture is the same</li>
<li>Something else?</li>
</ol>