summaryrefslogtreecommitdiff
path: root/java/com/android/incallui/calllocation/impl/GoogleLocationSettingHelper.java
diff options
context:
space:
mode:
authorwangqi <wangqi@google.com>2017-09-27 10:13:49 -0700
committerEric Erfanian <erfanian@google.com>2017-09-28 08:33:56 -0700
commite37d60c2e304c599118a59e15ba4991f41cee785 (patch)
treeb1540b7210b312f8f47e31a2398130fd8850685e /java/com/android/incallui/calllocation/impl/GoogleLocationSettingHelper.java
parentc3c6126757e3b185587909e6ac9c7c6e897df4f9 (diff)
Refactor DialerStrictMode into an interface.
-bypassed violations are no longer logged in AospDialer The default implementation will use system strict mode and crash on bugfood build same as before. Bug: 66003745 Test: manual PiperOrigin-RevId: 170214128 Change-Id: Iab630f19499e90b15eb0b7f0707b4a70c7d81fbe
Diffstat (limited to 'java/com/android/incallui/calllocation/impl/GoogleLocationSettingHelper.java')
-rw-r--r--java/com/android/incallui/calllocation/impl/GoogleLocationSettingHelper.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/com/android/incallui/calllocation/impl/GoogleLocationSettingHelper.java b/java/com/android/incallui/calllocation/impl/GoogleLocationSettingHelper.java
index ed2e84368..305ab4377 100644
--- a/java/com/android/incallui/calllocation/impl/GoogleLocationSettingHelper.java
+++ b/java/com/android/incallui/calllocation/impl/GoogleLocationSettingHelper.java
@@ -26,7 +26,7 @@ import android.net.Uri;
import android.provider.Settings.Secure;
import android.provider.Settings.SettingNotFoundException;
import com.android.dialer.common.LogUtil;
-import com.android.dialer.strictmode.DialerStrictMode;
+import com.android.dialer.strictmode.StrictModeUtils;
/**
* Helper class to check if Google Location Services is enabled. This class is based on
@@ -121,7 +121,7 @@ public class GoogleLocationSettingHelper {
if (!isEnforceable(context)) {
return true;
}
- int locationServiceStatus = DialerStrictMode.bypass(() -> getUseLocationForServices(context));
+ int locationServiceStatus = StrictModeUtils.bypass(() -> getUseLocationForServices(context));
return locationServiceStatus == USE_LOCATION_FOR_SERVICES_ON;
}
}