Merge "Only show emergency app preference if enabled" into mnc-dev

This commit is contained in:
Adrian Roos
2015-06-02 20:50:34 +00:00
committed by Android (Google) Code Review

View File

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