Added more logging and moved the prefs fetching code into a separate class.

Bug:6282451
Change-Id: I9dcf42cc2629b50c088f32c1d76f1596ee30dec2
1 file changed