Fix swipe-to-dismiss to properly react to swipe gestures.
am: 8a9b27773b

Change-Id: If7040c0f1cc71edcc16021b4825fb5d1d6fbdecf