Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5eb496e7 authored by Juan Lang's avatar Juan Lang
Browse files

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
parent 73619d16
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {
+1 −1
Original line number Diff line number Diff line
@@ -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");
    }
}