bug:3513950 a trivial change due to renaming of api in downloadmanager
Change-Id: I5f8cd86fc97afa32e4a07ee2b6ab77d3270856be
This commit is contained in:
parent
c0d3a8fedb
commit
d43438ee5b
@ -783,7 +783,8 @@ public abstract class MessageViewFragmentBase extends Fragment implements View.O
|
|||||||
|
|
||||||
DownloadManager dm =
|
DownloadManager dm =
|
||||||
(DownloadManager) getActivity().getSystemService(Context.DOWNLOAD_SERVICE);
|
(DownloadManager) getActivity().getSystemService(Context.DOWNLOAD_SERVICE);
|
||||||
dm.completedDownload(info.mName, info.mName, false /* do not use media scanner */,
|
dm.addCompletedDownload(info.mName, info.mName,
|
||||||
|
false /* do not use media scanner */,
|
||||||
info.mContentType, file.getAbsolutePath(), info.mSize,
|
info.mContentType, file.getAbsolutePath(), info.mSize,
|
||||||
true /* show notification */);
|
true /* show notification */);
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
|
Loading…
Reference in New Issue
Block a user