diff --git a/library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadManager.java b/library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadManager.java index 409f79f30b..3757517f5d 100644 --- a/library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadManager.java +++ b/library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadManager.java @@ -528,9 +528,9 @@ public final class DownloadManager { *

Transition diagram: * *

-     *                    -> canceled
-     * queued <-> started -> completed
-     *                    -> failed
+     *    ┌────────┬─────→ canceled
+     * queued ↔ started ┬→ completed
+     *                  └→ failed
      * 
*/ @Documented @@ -609,18 +609,15 @@ public final class DownloadManager { * {@link #STATE_QUEUED_CANCELING}, {@link #STATE_STARTED_CANCELING} or {@link * #STATE_STARTED_STOPPING}. * - *

Transition map (vertical states are source states): + *

Transition diagram: * *

-     *             +------+-------+---------+-----------+-----------+--------+--------+------+
-     *             |queued|started|completed|q_canceling|s_canceling|canceled|stopping|failed|
-     * +-----------+------+-------+---------+-----------+-----------+--------+--------+------+
-     * |queued     |      |   X   |         |     X     |           |        |        |      |
-     * |started    |      |       |    X    |           |     X     |        |   X    |   X  |
-     * |q_canceling|      |       |         |           |           |   X    |        |      |
-     * |s_canceling|      |       |         |           |           |   X    |        |      |
-     * |stopping   |   X  |       |         |           |           |        |        |      |
-     * +-----------+------+-------+---------+-----------+-----------+--------+--------+------+
+     *    ┌───→ q_canceling ┬→ canceled
+     *    │     s_canceling ┘
+     *    │         ↑
+     * queued → started ────┬→ completed
+     *    ↑         ↓       └→ failed
+     *    └──── s_stopping
      * 
*/ @Documented