If Settings is started on an existing task, the existing SplitPairRule may cause an unexpected app finish while navigating back from the 2nd layer page. This change resets SplitPairRule in onNewIntent(). Bug: 247080168 Test: make RunSettingsRoboTests ROBOTEST_FILTER=SettingsHomepageActivityTest manual 1. Settings app -> 'Connexted device'. 2. Launch Settings app again from Settings icon in quick Settings. 3. Start a 3rd layer from 'Network & internet' 4. Click back and see if the 2nd lay shows. Change-Id: I262327cc49c3a4434a183eb00ac57f47fa598f70 Merged-In: I262327cc49c3a4434a183eb00ac57f47fa598f70
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.