summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/app/voicemail
diff options
context:
space:
mode:
authorlinyuh <linyuh@google.com>2017-10-26 17:04:30 -0700
committerEric Erfanian <erfanian@google.com>2017-10-27 08:45:56 -0700
commit168d09c3ad4fdc93ab018f68b7f583be7acd2851 (patch)
treece7846c1d1911e2067aeaf42b2e3f247273a43f7 /java/com/android/dialer/app/voicemail
parentf60c5384f34660ae03ae3c15183980dfb8219ba9 (diff)
Move the functionality of DialerUtils#getDefaultSharedPreferenceForDeviceProtectedStorageContext(Context) to StorageComponent.
Bug: 30224215 Test: none PiperOrigin-RevId: 173612463 Change-Id: Ia89d5d85c31ea2114b196393ae43b803023fc9bf
Diffstat (limited to 'java/com/android/dialer/app/voicemail')
-rw-r--r--java/com/android/dialer/app/voicemail/LegacyVoicemailNotificationReceiver.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/java/com/android/dialer/app/voicemail/LegacyVoicemailNotificationReceiver.java b/java/com/android/dialer/app/voicemail/LegacyVoicemailNotificationReceiver.java
index 0a6f2c156..3ce837b8c 100644
--- a/java/com/android/dialer/app/voicemail/LegacyVoicemailNotificationReceiver.java
+++ b/java/com/android/dialer/app/voicemail/LegacyVoicemailNotificationReceiver.java
@@ -33,7 +33,7 @@ import com.android.dialer.common.Assert;
import com.android.dialer.common.LogUtil;
import com.android.dialer.common.PerAccountSharedPreferences;
import com.android.dialer.compat.telephony.TelephonyManagerCompat;
-import com.android.dialer.util.DialerUtils;
+import com.android.dialer.storage.StorageComponent;
import com.android.voicemail.VoicemailClient;
import com.android.voicemail.VoicemailComponent;
@@ -140,8 +140,6 @@ public class LegacyVoicemailNotificationReceiver extends BroadcastReceiver {
static PerAccountSharedPreferences getSharedPreferences(
Context context, PhoneAccountHandle phoneAccountHandle) {
return new PerAccountSharedPreferences(
- context,
- phoneAccountHandle,
- DialerUtils.getDefaultSharedPreferenceForDeviceProtectedStorageContext(context));
+ context, phoneAccountHandle, StorageComponent.get(context).unencryptedSharedPrefs());
}
}