Add check before trying to launch contact add intent.

This commit is contained in:
Alex Hart
2022-08-16 12:32:41 -03:00
parent 16a4c321c4
commit a46faebb67
3 changed files with 12 additions and 2 deletions

View File

@@ -7,11 +7,14 @@ import android.content.Intent;
import android.content.pm.LabeledIntent;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.StringRes;
import java.util.List;
import java.util.function.Consumer;
public class IntentUtils {
@@ -36,5 +39,4 @@ public class IntentUtils {
}
return null;
}
}