Page MenuHomePhabricator

[BUG] Cannot open Main page from Offline pack's details screen if user remains in that screen for the duration of the download
Closed, ResolvedPublic

Description

Steps to reproduce

  1. Open app and navigate to the Offline Library
  2. Tap to view the details screen of an article pack (preferably a smaller sized pack such as Medical Wiki ES/Español (no video))
  3. Tap to download the pack from the details screen. Remain in that screen until the download completes.
  4. Tap on the "Main page" button after the download completes

Expected

The main page of that pack opens.

Actual

User receives a "An unknown error occurred" toast message.

image.png (1×1 px, 234 KB)

Occurring on

Nexus 5 (6.0.1)
Wikipedia v2.6.203-alpha-2017-09-11

Event Timeline

Change 377772 had a related patch set uploaded (by Dbrant; owner: Dbrant):
[apps/android/wikipedia@master] Explicitly make offline pack available immediately upon finishing download.

https://gerrit.wikimedia.org/r/377772

Change 377772 merged by jenkins-bot:
[apps/android/wikipedia@master] Explicitly make offline pack available immediately upon finishing download.

https://gerrit.wikimedia.org/r/377772

ABorbaWMF subscribed.

Tested on a Nexus 4 with Android 5.1 and a Pixel with Android 7.1.1 on 2.6.203-alpha-2017-09-18

Looks good to me.