Fix for handling download path
The file explorer app changed the way it sets the download
path and it was not handled correctly by the browser.
This change fixes it.
Change-Id: I7c400a2dc290b0c990777722646f9b2e91db8478
diff --git a/src/com/android/browser/DownloadSettings.java b/src/com/android/browser/DownloadSettings.java
index b10470b..d67d6d6 100644
--- a/src/com/android/browser/DownloadSettings.java
+++ b/src/com/android/browser/DownloadSettings.java
@@ -242,9 +242,8 @@
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent intent) {
-
if (DOWNLOAD_PATH == requestCode) {
- if (resultCode == Activity.RESULT_OK && intent != null) {
+ if (resultCode != Activity.RESULT_CANCELED && intent != null) {
downloadPath = intent.getStringExtra("result_dir_sel");
// Fallback logic to stock browser
if (downloadPath == null) {