commit | 0c2ccd0598d818319948f109d0edff6e6fadc90b | [log] [tgz] |
---|---|---|
author | Jeff Sharkey <jsharkey@android.com> | Tue Mar 22 10:05:47 2016 -0600 |
committer | Jeff Sharkey <jsharkey@android.com> | Tue Mar 22 10:05:47 2016 -0600 |
tree | 19629d09b6234b52b996da44aaa734e51409aed8 | |
parent | 8a8e68ce3b2b84174661dda1eb089db80c853b65 [diff] [blame] |
Throw the right exception flavor. Change-Id: Ie017fce925ed0122d3820c3f3d91e1b86982a7b1
diff --git a/core/java/android/app/DownloadManager.java b/core/java/android/app/DownloadManager.java index ed4bb28..536c4a8 100644 --- a/core/java/android/app/DownloadManager.java +++ b/core/java/android/app/DownloadManager.java
@@ -1319,7 +1319,7 @@ return getLocalUri(); case COLUMN_LOCAL_FILENAME: if (!mAccessFilename) { - throw new IllegalArgumentException( + throw new SecurityException( "COLUMN_LOCAL_FILENAME is deprecated;" + " use ContentResolver.openFileDescriptor() instead"); }