Skip to content

Commit

Permalink
Add image for notification updating
Browse files Browse the repository at this point in the history
  • Loading branch information
mgp committed Mar 9, 2016
1 parent c969778 commit e6785b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added items/images/download-video-notification.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion items/test-emitted-values-using-testobserver.md
Expand Up @@ -18,7 +18,7 @@ Below we demonstrate an example of the second strategy from the [Khan Academy An

A user of the Khan Academy Android application can download videos for offline viewing. As a video downloads, an `Observable` emits `DownloadEvent` instances that reflect the progress of the download. We want to observe these events so that we can display and update a notification for the download:

[image]
![Notification updating as a video downloads](images/download-video-notification.gif)

This notification contains the title of the downloading video. The title is a property of the `ContentItem` that represents the video. However, the `DownloadEvent` that we receive has only a `ContentItemIdentifier` property, which is only a unique identifier for a `ContentItem` instance. We can pass the `ContentItemIdentifier` to the `fetchContentItem` method of a `ContentDatabase` implementation:

Expand Down

0 comments on commit e6785b6

Please sign in to comment.