1. use getPrefContext() to make sure it has correct style 2. Move operation back to bg thread so it won't block UI Bug: 114749736 Test: RunSettingsRoboTests Change-Id: I7737ea8b21d44790617b9c4f13a8c4c41037fca4
Running Settings Robolectric tests
The full suite
$ croot
$ make RunSettingsRoboTests
Running a single test class
$ croot
$ make RunSettingsRoboTests ROBOTEST_FILTER=<ClassName>
For example:
make RunSettingsRoboTests ROBOTEST_FILTER=CodeInspectionTest
You can also use partial class name in ROBOTEST_FILTER. If the partial class name matches multiple file names, all of them will be executed.