From ce59fb8b684357f2a10ab62368beeece34bc0e5d Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Wed, 7 Apr 2010 17:19:04 -0700 Subject: [PATCH] Fix issue #2578244: playing audio file downloaded by the browser... ...shows an image downloaded by the browser The downloads directory needs to be non-plural for backwards compatibility. Change-Id: Ifb6ddf8ee980a57ad113a5fc8b51f5acd8df5955 --- core/java/android/os/Environment.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/java/android/os/Environment.java b/core/java/android/os/Environment.java index f7e7d39954527..812391c48e5fa 100644 --- a/core/java/android/os/Environment.java +++ b/core/java/android/os/Environment.java @@ -166,9 +166,11 @@ public class Environment { * Standard directory in which to place files that have been downloaded by * the user. Note that this is primarily a convention for the top-level * public directory, you are free to download files anywhere in your own - * private directories. + * private directories. Also note that though the constant here is + * named DIRECTORY_DOWNLOADS (plural), the actual file name is non-plural for + * backwards compatibility reasons. */ - public static String DIRECTORY_DOWNLOADS = "Downloads"; + public static String DIRECTORY_DOWNLOADS = "Download"; /** * The traditional location for pictures and videos when mounting the