IssueReporterShakeManager
Turns a shake of the device into the issue reporter, for every activity in the app.
It is application-scoped on purpose. An app built on this toolkit has several activities, and copying a sensor listener into each of them would be the same code repeated per screen and a listener that outlives the screen that registered it. Only the foreground activity can present anything, so one listener that follows the resumed activity is all the feature needs.
The accelerometer is registered when an activity resumes and unregistered when it pauses, which is the platform's own guidance: a sensor left registered keeps drawing power with nothing to show for it. That also means a backgrounded app reads no sensor at all.
Nothing happens unless IssueReporterConfig.shakeToReportEnabled is set, and nothing happens until install is called, so a host that does not want the gesture never pays for it.
Parameters
The app whose activities are followed.
Host configuration deciding whether the gesture is active.