diff --git a/src/cheogram/java/eu/siacs/conversations/ui/ManageAccountActivity.java b/src/cheogram/java/eu/siacs/conversations/ui/ManageAccountActivity.java index 69bc4206298cbc201136392c51d523cc2ce3e161..424bcc99ed817f0be49a929f9f908a3545446075 100644 --- a/src/cheogram/java/eu/siacs/conversations/ui/ManageAccountActivity.java +++ b/src/cheogram/java/eu/siacs/conversations/ui/ManageAccountActivity.java @@ -93,6 +93,11 @@ public class ManageAccountActivity extends XmppActivity implements OnAccountUpda }); if (Build.VERSION.SDK_INT < 23) return; + if (Build.VERSION.SDK_INT >= 33) { + if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_TELECOM)) return; + } else { + if (!getPackageManager().hasSystemFeature(PackageManager.FEATURE_CONNECTION_SERVICE)) return; + } outer: for (Account account : xmppConnectionService.getAccounts()) { @@ -287,7 +292,11 @@ public class ManageAccountActivity extends XmppActivity implements OnAccountUpda if (allGranted(grantResults)) { switch (requestCode) { case REQUEST_MICROPHONE: - startActivity(mMicIntent); + try { + startActivity(mMicIntent); + } catch (final android.content.ActivityNotFoundException e) { + Toast.makeText(this, "Your OS has blocked dialler integration", Toast.LENGTH_SHORT).show(); + } mMicIntent = null; return; case REQUEST_IMPORT_BACKUP: