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

Commit 019704c7 authored by Michael W's avatar Michael W Committed by Dan Pasanen
Browse files

Dialer: AIRPLANE_MODE_ON has moved

* Lives in "Global" context now

Change-Id: Id42a1a75b46df4634b787cebbc4e1f3e19f7f8e0
parent 4641f2e5
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -1202,8 +1202,8 @@ public class DialpadFragment extends Fragment
                        // Voicemail is unavailable maybe because Airplane mode is turned on.
                        // Check the current status and show the most appropriate error message.
                        final boolean isAirplaneModeOn =
                                Settings.System.getInt(getActivity().getContentResolver(),
                                        Settings.System.AIRPLANE_MODE_ON, 0) != 0;
                                Settings.Global.getInt(getActivity().getContentResolver(),
                                        Settings.Global.AIRPLANE_MODE_ON, 0) != 0;
                        if (isAirplaneModeOn) {
                            DialogFragment dialogFragment = ErrorDialogFragment.newInstance(
                                    R.string.dialog_voicemail_airplane_mode_message);
@@ -1276,8 +1276,8 @@ public class DialpadFragment extends Fragment
                        return true;
                    }
                    final boolean isAirplaneModeOn =
                            Settings.System.getInt(getActivity().getContentResolver(),
                                    Settings.System.AIRPLANE_MODE_ON, 0) != 0;
                            Settings.Global.getInt(getActivity().getContentResolver(),
                                    Settings.Global.AIRPLANE_MODE_ON, 0) != 0;
                    if (isAirplaneModeOn) {
                        DialogFragment dialogFragment = ErrorDialogFragment.newInstance(
                                R.string.dialog_speed_dial_airplane_mode_message);