milaq/android_frameworks_base — comment on commit c7a7abf037f67a68490f825590d85d7e07145a64
File: packages/SystemUI/src/com/android/systemui/statusbar/CmStatusBarView.java line 730
By milaq:

if i declare hapticsEnabled gobally/onFinishInflate only it won't recognize a user haptic feedback settings change i.e. requiring a reboot.

however, i have a nicer version of the code already commited.
see https://github.com/milaq/android_frameworks_base/commit/1df813f1595d4cade99e53b7921e39e643f4fe3e