Page MenuHomePhabricator

Link preview should snap to full screen, half screen, or dismissal positions
Closed, ResolvedPublic

Description

Description

Link previews should use the bottom sheets library and design patterns in the Android Support library v23.2[0].

Steps to reproduce (1)

  1. Engage a link preview.
  2. Scroll down or press the spacebar so the preview is behind the continue to page button.

Steps to reproduce (2)

  1. Engage a link preview.
  2. Scroll down so the preview is about 1/3 open.

Steps to reproduce (3)

  1. Engage a link preview.
  2. Scroll up so the preview is about 2/3 open.

Expected results

When not being held, the preview should snap to dismiss, half screen, or full screen display, whichever is nearest.

Actual results

Link preview stays where it is let go.

Environments observed

App version: 773994917d6c95909af949331f4ffad73c00550a
Android OS versions: API 15
Device model: AOSP Nexus One emulator
Device language: English

[0] http://android-developers.blogspot.com/2016/02/android-support-library-232.html

Event Timeline

Niedzielski raised the priority of this task from to Needs Triage.
Niedzielski updated the task description. (Show Details)
Niedzielski subscribed.

This should be much greater gain and lower cost to implement now that Support v23.2 is out.

Change 335279 had a related patch set uploaded (by Dbrant):
Convert link preview dialog to be a native BottomSheet.

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

Change 335279 merged by jenkins-bot:
Convert link preview dialog to be a native BottomSheet.

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