commit | c2346134bb519a54d50655cbef940fc3fdec60a9 | [log] [tgz] |
---|---|---|
author | Jeff Brown <jeffbrown@google.com> | Fri Apr 13 01:55:38 2012 -0700 |
committer | Jeff Brown <jeffbrown@google.com> | Fri Apr 13 04:05:17 2012 -0700 |
tree | 6b86f97b2175bc2b0181cbf123e4f874867e7c91 | |
parent | 069c4f3f0c8190289d60296ec54fafa56abb4776 [diff] |
Extract Vibrator implementation from interface. Moved the core logic of Vibrator into SystemVibrator, potentially allowing for the creation of other Vibrator subclasses. Fixed several places where we were creating new Vibrator instances unnecessarily instead of getting it from the Context. It is safe to make Vibrator abstract because its constructor was hidden from the SDK so it was not possible to subclass it. Bug: 6334179 Change-Id: I18ece6544c26a7efb2d5099f8346a10aef8a5e18