Some contextual cards does not allow card dismissal, so they won't have swipe background declared in the layout file. Add null check to prevent from NPE. Fixes: 132209310 Test: robotests & launch Settings Change-Id: I31f897f445c4901d007c8187fe69aea416b915d1
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.