Skip to content

Commit 4d8f33f

Browse files
committed
Fix profile photo download.
1 parent a97de73 commit 4d8f33f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

libs/SalesforceSDK/src/com/salesforce/androidsdk/accounts/UserAccount.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,8 @@ public void downloadProfilePhoto() {
710710
// Checks if DownloadManager is enabled on the device, to ensure it doesn't crash.
711711
final PackageManager pm = SalesforceSDKManager.getInstance().getAppContext().getPackageManager();
712712
int state = pm.getApplicationEnabledSetting("com.android.providers.downloads");
713-
if (state == PackageManager.COMPONENT_ENABLED_STATE_ENABLED) {
713+
if (state == PackageManager.COMPONENT_ENABLED_STATE_ENABLED ||
714+
state == PackageManager.COMPONENT_ENABLED_STATE_DEFAULT) {
714715
final DownloadManager.Request downloadReq = new DownloadManager.Request(srcUri);
715716
downloadReq.setDestinationUri(destUri);
716717
downloadReq.addRequestHeader(AUTHORIZATION, BEARER + authToken);

0 commit comments

Comments
 (0)