SwipeBackLayout: squash changes from https://github.com/Issacw0ng/SwipeBackLayout