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

Commit fe3d4862 authored by Steve Kondik's avatar Steve Kondik
Browse files

Don't throw exceptions all over the place if no checkin service is

available as a content provider.
parent e1431298
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -623,8 +623,13 @@ public abstract class ContentResolver {
    {
        IContentProvider provider = acquireProvider(url);
        if (provider == null) {
        	// Fail quietly if this is a checkin request and there is no provider
        	if (url.getHost().equals("android.server.checkin")) {
        		return null;
        	} else {
        		throw new IllegalArgumentException("Unknown URL " + url);
        	}
        }
        try {
            return provider.insert(url, values);
        } catch (RemoteException e) {