Fix a typo in the launch intent for emergency info.
The EmergencyInfo app accepts either launch target for now. After this is submitted, the misspelled one can be removed. Test: Manually test that the Settings app still launches the EmergencyInfo app. Reran unit tests. Change-Id: I923468dbe9825e85b021f5ea64ee2877fd02f262
This commit is contained in:
@@ -34,7 +34,7 @@ import java.util.List;
|
||||
public class EmergencyInfoPreferenceController extends PreferenceController {
|
||||
|
||||
private static final String KEY_EMERGENCY_INFO = "emergency_info";
|
||||
private static final String ACTION_EDIT_EMERGENCY_INFO = "android.settings.EDIT_EMERGENGY_INFO";
|
||||
private static final String ACTION_EDIT_EMERGENCY_INFO = "android.settings.EDIT_EMERGENCY_INFO";
|
||||
private static final String PACKAGE_NAME_EMERGENCY = "com.android.emergency";
|
||||
|
||||
public EmergencyInfoPreferenceController(Context context) {
|
||||
|
@@ -149,6 +149,6 @@ public class EmergencyInfoPreferenceControllerTest {
|
||||
mController.handlePreferenceTreeClick(preference);
|
||||
|
||||
assertThat(application.getNextStartedActivity().getAction())
|
||||
.isEqualTo("android.settings.EDIT_EMERGENGY_INFO");
|
||||
.isEqualTo("android.settings.EDIT_EMERGENCY_INFO");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user