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 @@ -725,7 +725,8 @@ public void downloadProfilePhoto() {
725725 // Checks if DownloadManager is enabled on the device, to ensure it doesn't crash.
726726 final PackageManager pm = SalesforceSDKManager .getInstance ().getAppContext ().getPackageManager ();
727727 int state = pm .getApplicationEnabledSetting ("com.android.providers.downloads" );
728- if (state == PackageManager .COMPONENT_ENABLED_STATE_ENABLED ) {
728+ if (state == PackageManager .COMPONENT_ENABLED_STATE_ENABLED ||
729+ state == PackageManager .COMPONENT_ENABLED_STATE_DEFAULT ) {
729730 final DownloadManager .Request downloadReq = new DownloadManager .Request (srcUri );
730731 downloadReq .setDestinationUri (destUri );
731732 downloadReq .addRequestHeader (AUTHORIZATION , BEARER + authToken );
You can’t perform that action at this time.
0 commit comments