Merge "Fallback to AOSP emergency info if the original intent is broken" into rvc-dev

This commit is contained in:
TreeHugger Robot
2020-04-16 16:01:43 +00:00
committed by Android (Google) Code Review
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");
}
}