Merge "Throw the right exception flavor." into nyc-dev am: 7067487
am: 2a0afa5
* commit '2a0afa58633cf2f7910513575bf67836b62984ff':
Throw the right exception flavor.
This commit is contained in:
@@ -1366,7 +1366,7 @@ public class DownloadManager {
|
||||
return getLocalUri();
|
||||
case COLUMN_LOCAL_FILENAME:
|
||||
if (!mAccessFilename) {
|
||||
throw new IllegalArgumentException(
|
||||
throw new SecurityException(
|
||||
"COLUMN_LOCAL_FILENAME is deprecated;"
|
||||
+ " use ContentResolver.openFileDescriptor() instead");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user