Merge "Fallback to AOSP emergency info if the original intent is broken" into rvc-dev am: afbf9e60c0 am: 8f39c1380c am: bafc52f0f0 am: 5e159c017c

Change-Id: I9ce7751d0ae92ba6dc13c8204a5882364a62fb0c
This commit is contained in:
TreeHugger Robot
2020-04-16 16:55:33 +00:00
committed by Automerger Merge Worker
3 changed files with 50 additions and 16 deletions

View File

@@ -156,10 +156,11 @@ public class EmergencyInfoPreferenceControllerTest {
final Preference preference = new Preference(activity);
preference.setKey("emergency_info");
mController = new EmergencyInfoPreferenceController(activity, preference.getKey());
mController.mIntent = new Intent("com.example.action.new").setPackage("com.example.test");
mController.handlePreferenceTreeClick(preference);
assertThat(application.getNextStartedActivity().getAction())
.isEqualTo("android.settings.EDIT_EMERGENCY_INFO");
.isEqualTo("com.example.action.new");
}
}