Merge "The phone is crashing when unknown mime content is transferred."
This commit is contained in:
@ -201,6 +201,7 @@ public abstract class ContentResolver {
|
|||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
return null;
|
return null;
|
||||||
} catch (java.lang.Exception e) {
|
} catch (java.lang.Exception e) {
|
||||||
|
Log.w(TAG, "Failed to get type for: " + url + " (" + e.getMessage() + ")");
|
||||||
return null;
|
return null;
|
||||||
} finally {
|
} finally {
|
||||||
releaseProvider(provider);
|
releaseProvider(provider);
|
||||||
@ -216,6 +217,9 @@ public abstract class ContentResolver {
|
|||||||
return type;
|
return type;
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
return null;
|
return null;
|
||||||
|
} catch (java.lang.Exception e) {
|
||||||
|
Log.w(TAG, "Failed to get type for: " + url + " (" + e.getMessage() + ")");
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user