Centralize dui broadcast receivers

1) use one receiver only rather than creating more, this let's also
unregister them easily

2) use own screen on/off receiver instead of the framework
NavigationBarFragment so we don't need to catch Google changes like
this one: https://github.com/aosp-mirror/platform_frameworks_base/commit/d002a0a96eb857804b3aafbcd32cf66a378c5b6c
(we need to know screen on/off states to avoid useless pulse, editor,
fling gesture and other operations when screen is off, and screen on to
refresh stuff when needed)

3) cleanup

Change-Id: Id8c9bf90b68b425f6c446135e6de2cab145884d8
5 files changed
tree: b9a6fede12c4da3a74e810cda2cb31ed787722cf
  1. res/
  2. src/
  3. Android.mk
  4. LICENSE