[2/2] DeskClock: unify flip action handler

We cannot share the code since DeskClock is only using
the app API but we can at least share the file :)

Change-Id: I15c4deb81f81bf4245918c1007b42dad57c21b08