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:
Juan Lang
2017-05-02 17:09:00 -07:00
parent 73619d16a0
commit 5eb496e714
2 changed files with 2 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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");
}
}