summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authortwyen <twyen@google.com>2018-01-11 14:21:46 -0800
committerCopybara-Service <copybara-piper@google.com>2018-01-11 17:02:07 -0800
commit98280255db8824cb58caac596cb4f9febcf57306 (patch)
tree44289bab3029bc847a35b5d5b80a51dcdff246a4 /java
parent58bade2ace277dff4db3bbbfa2e07015f0f7c6ad (diff)
Attempt to place call even call permission is missing
Telecom might still allow emergency calls to be placed if dialer is the default dialer. Bug: 71739167 Test: Unit tests. PiperOrigin-RevId: 181661814 Change-Id: I24063ee42d646c4b614f3fdeb5685490f064a898
Diffstat (limited to 'java')
-rw-r--r--java/com/android/dialer/precall/impl/PermissionCheckAction.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/com/android/dialer/precall/impl/PermissionCheckAction.java b/java/com/android/dialer/precall/impl/PermissionCheckAction.java
index b57b37a6f..85e9ceb9c 100644
--- a/java/com/android/dialer/precall/impl/PermissionCheckAction.java
+++ b/java/com/android/dialer/precall/impl/PermissionCheckAction.java
@@ -21,14 +21,14 @@ import android.widget.Toast;
import com.android.dialer.callintent.CallIntentBuilder;
import com.android.dialer.precall.PreCallAction;
import com.android.dialer.precall.PreCallCoordinator;
-import com.android.dialer.util.PermissionsUtil;
+import com.android.dialer.telecom.TelecomUtil;
/** Aborts call and show a toast if phone permissions are missing. */
public class PermissionCheckAction implements PreCallAction {
@Override
public boolean requiresUi(Context context, CallIntentBuilder builder) {
- return !PermissionsUtil.hasPhonePermissions(context);
+ return !TelecomUtil.hasCallPhonePermission(context);
}
@Override