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

Commit 7581c307 authored by Adrian Roos's avatar Adrian Roos
Browse files

Only show emergency app preference if enabled

Bug: 21471480
Change-Id: I93e5dcb9acb8be1220d2874d5bca764819139760
parent a4e0492c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -139,7 +139,8 @@ public class DefaultEmergencyPreference extends AppListPreference {
    }

    public static boolean isCapable(Context context) {
        return context.getResources().getBoolean(
        return TelephonyManager.EMERGENCY_ASSISTANCE_ENABLED
                && context.getResources().getBoolean(
                com.android.internal.R.bool.config_voice_capable);
    }