diff options
Diffstat (limited to 'java/com/android/dialer/assisteddialing/ConcreteCreator.java')
-rw-r--r-- | java/com/android/dialer/assisteddialing/ConcreteCreator.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/java/com/android/dialer/assisteddialing/ConcreteCreator.java b/java/com/android/dialer/assisteddialing/ConcreteCreator.java index c1ffbd396..2561e28cd 100644 --- a/java/com/android/dialer/assisteddialing/ConcreteCreator.java +++ b/java/com/android/dialer/assisteddialing/ConcreteCreator.java @@ -29,6 +29,7 @@ import android.telephony.TelephonyManager; import com.android.dialer.common.LogUtil; import com.android.dialer.configprovider.ConfigProvider; import com.android.dialer.configprovider.ConfigProviderBindings; +import com.android.dialer.strictmode.StrictModeUtils; /** * A Creator for AssistedDialingMediators. @@ -90,8 +91,11 @@ public final class ConcreteCreator { return new AssistedDialingMediatorImpl( new LocationDetector( telephonyManager, - PreferenceManager.getDefaultSharedPreferences(context) - .getString(context.getString(R.string.assisted_dialing_setting_cc_key), null)), + StrictModeUtils.bypass( + () -> + PreferenceManager.getDefaultSharedPreferences(context) + .getString( + context.getString(R.string.assisted_dialing_setting_cc_key), null))), new NumberTransformer(constraints)); } |