Merge "Throw the right exception flavor." into nyc-dev

am: 7067487

* commit '706748782173d2f02fbbeda1310e09cd033157a3':
  Throw the right exception flavor.
This commit is contained in:
Jeff Sharkey
2016-03-22 18:43:01 +00:00
committed by android-build-merger

View File

@@ -1319,7 +1319,7 @@ public class DownloadManager {
return getLocalUri(); return getLocalUri();
case COLUMN_LOCAL_FILENAME: case COLUMN_LOCAL_FILENAME:
if (!mAccessFilename) { if (!mAccessFilename) {
throw new IllegalArgumentException( throw new SecurityException(
"COLUMN_LOCAL_FILENAME is deprecated;" "COLUMN_LOCAL_FILENAME is deprecated;"
+ " use ContentResolver.openFileDescriptor() instead"); + " use ContentResolver.openFileDescriptor() instead");
} }