File tree Expand file tree Collapse file tree
libs/SalesforceSDK/src/com/salesforce/androidsdk/accounts Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments