From 168d09c3ad4fdc93ab018f68b7f583be7acd2851 Mon Sep 17 00:00:00 2001 From: linyuh Date: Thu, 26 Oct 2017 17:04:30 -0700 Subject: Move the functionality of DialerUtils#getDefaultSharedPreferenceForDeviceProtectedStorageContext(Context) to StorageComponent. Bug: 30224215 Test: none PiperOrigin-RevId: 173612463 Change-Id: Ia89d5d85c31ea2114b196393ae43b803023fc9bf --- java/com/android/voicemail/impl/sync/VvmAccountManager.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'java/com/android/voicemail') diff --git a/java/com/android/voicemail/impl/sync/VvmAccountManager.java b/java/com/android/voicemail/impl/sync/VvmAccountManager.java index 2625fba0c..f458b2a6d 100644 --- a/java/com/android/voicemail/impl/sync/VvmAccountManager.java +++ b/java/com/android/voicemail/impl/sync/VvmAccountManager.java @@ -28,7 +28,7 @@ import android.util.ArraySet; import com.android.dialer.common.Assert; import com.android.dialer.common.PerAccountSharedPreferences; import com.android.dialer.common.concurrent.ThreadUtil; -import com.android.dialer.util.DialerUtils; +import com.android.dialer.storage.StorageComponent; import com.android.voicemail.impl.OmtpConstants; import com.android.voicemail.impl.VisualVoicemailPreferences; import com.android.voicemail.impl.VoicemailStatus; @@ -162,8 +162,6 @@ public class VvmAccountManager { private static PerAccountSharedPreferences getPreferenceForActivationState( Context context, PhoneAccountHandle phoneAccountHandle) { return new PerAccountSharedPreferences( - context, - phoneAccountHandle, - DialerUtils.getDefaultSharedPreferenceForDeviceProtectedStorageContext(context)); + context, phoneAccountHandle, StorageComponent.get(context).unencryptedSharedPrefs()); } } -- cgit v1.2.3