Merge "Only show emergency app preference if enabled" into mnc-dev
This commit is contained in:
@@ -139,7 +139,8 @@ public class DefaultEmergencyPreference extends AppListPreference {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isCapable(Context context) {
|
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);
|
com.android.internal.R.bool.config_voice_capable);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user