Remove option to configure emergency app
Bug: 28873644 Change-Id: Iddf4e781af8cb3ca3b62d1141c58402933bd8ec8
This commit is contained in:
@@ -44,6 +44,7 @@ import java.util.Set;
|
|||||||
public class DefaultEmergencyPreference extends AppListPreference
|
public class DefaultEmergencyPreference extends AppListPreference
|
||||||
implements SelfAvailablePreference {
|
implements SelfAvailablePreference {
|
||||||
|
|
||||||
|
private static final boolean DEFAULT_EMERGENCY_APP_IS_CONFIGURABLE = false;
|
||||||
private final ContentResolver mContentResolver;
|
private final ContentResolver mContentResolver;
|
||||||
|
|
||||||
public static final Intent QUERY_INTENT = new Intent(
|
public static final Intent QUERY_INTENT = new Intent(
|
||||||
@@ -143,7 +144,8 @@ public class DefaultEmergencyPreference extends AppListPreference
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean isAvailable(Context context) {
|
public boolean isAvailable(Context context) {
|
||||||
return isCapable(context)
|
return DEFAULT_EMERGENCY_APP_IS_CONFIGURABLE
|
||||||
|
&& isCapable(context)
|
||||||
&& context.getPackageManager().resolveActivity(QUERY_INTENT, 0) != null;
|
&& context.getPackageManager().resolveActivity(QUERY_INTENT, 0) != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user