Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e32f4931 authored by Michael W's avatar Michael W
Browse files

Dialer: Fix in-call vibrations

After switching to protected storage in commit 145b22ff we need to access
them on that context as well

Change-Id: I4b8d50fa813464bb3450caa9aac9a70ae18fc0b9
parent 7aed2eb8
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -44,7 +44,9 @@ public class InCallVibrationHandler extends Handler implements
  private DialerCall activeCall;

  public InCallVibrationHandler(Context context) {
    prefs = PreferenceManager.getDefaultSharedPreferences(context);
    prefs = context.createDeviceProtectedStorageContext()
            .getSharedPreferences(PreferenceManager.getDefaultSharedPreferencesName(context),
                    Context.MODE_PRIVATE);
    vibrator = (Vibrator) context.getSystemService(Context.VIBRATOR_SERVICE);
  }