Problem
Allow Wikipedia Preview to be dismissed using the back key on Android devices.
Solution
Currently, Wikipedia preview can be dismissed either by tapping on a close icon or the area outside the preview. On Android devices along with these two interactions, we can also use the back(soft/hard) key to dismiss the preview.
This is how back key would work.
- If a preview is active is normal(before tapping on continue reading) or expanded mode(after tapping on continue reading) then back key will close the entire preview.
- If an image is active in full-screen mode from preview then back key closes the image and control goes back on the preview.
Note: This change is only for android devices, on iOS devices users will be using close icon or area outside to dismiss the preview.