You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By the way, I do not request ACCESS_NETWORK_STATE permission in my Manifest. If I request that permission, the crashing will not happen. But I use Glide to load just local images, so I don't want to request that permission.
The text was updated successfully, but these errors were encountered:
If you don't want to monitor connectivity status (totally fine), you can use setConnectivityMonitorFactory() in a GlideModule and set a factory that just returns an empty listener.
For more information on configuring Glide, see Glide's docs.
But I am still confused. There is code which call Context#checkCallingOrSelfPermission(String) to check permission ACCESS_NETWORK_STATE in DefaultConnectivityMonitorFactory#build(Context, ConnectivityListener).
The method Context#checkCallingOrSelfPermission(String)
Determine whether the calling process of an IPC or you have been granted a particular permission.
In my case, calling process of an IPC has ACCESS_NETWORK_STATE permission but not my app. So, DefaultConnectivityMonitorFactory#build(Context, ConnectivityListener) returns an object of class DefaultConnectivityMonitor, and crash happen when that object try to get network state later.
I guess calling Context#context.checkCallingOrSelfPermission(String) is incorrect. Is it?
Glide Version:
glide-full-4.0.0-RC1
Integration libraries:
Device/Android Version:
Nexus 6/Android 7.1.1
Issue details / Repro steps / Use case background:
Glide load line /
GlideModule
(if any) / list Adapter code (if any):Stack trace / LogCat:
By the way, I do not request ACCESS_NETWORK_STATE permission in my Manifest. If I request that permission, the crashing will not happen. But I use Glide to load just local images, so I don't want to request that permission.
The text was updated successfully, but these errors were encountered: