Only show emergency app preference if enabled
Bug: 21471480 Change-Id: I93e5dcb9acb8be1220d2874d5bca764819139760
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