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

Commit 4b3ab587 authored by Adrian Roos's avatar Adrian Roos Committed by android-build-merger
Browse files

Merge "Remove option to configure emergency app" into nyc-dev

am: 06b7d7cd

* commit '06b7d7cd':
  Remove option to configure emergency app

Change-Id: Ia306455b8fe44d6e42493937fce6ad92904737fe
parents 759ba9d1 06b7d7cd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ import java.util.Set;
public class DefaultEmergencyPreference extends AppListPreference
        implements SelfAvailablePreference {

    private static final boolean DEFAULT_EMERGENCY_APP_IS_CONFIGURABLE = false;
    private final ContentResolver mContentResolver;

    public static final Intent QUERY_INTENT = new Intent(
@@ -143,7 +144,8 @@ public class DefaultEmergencyPreference extends AppListPreference
    }

    public boolean isAvailable(Context context) {
        return isCapable(context)
        return DEFAULT_EMERGENCY_APP_IS_CONFIGURABLE
                && isCapable(context)
                && context.getPackageManager().resolveActivity(QUERY_INTENT, 0) != null;
    }