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

Commit 4ba27e91 authored by Santos Cordon's avatar Santos Cordon
Browse files

Set Quick Response pref as MULTI_PROCESS.

Since telecom runs in a different process from the settings activity, it
can sometimes read a cached value for the quick responses. Adding this
flag ensures that it checks the backing file for modification to
prevent using stale values.

Bug: 18828265
Change-Id: Ib3d5ae282a8eca45648d58e69bc9670d6ff6e211
parent 3dc66997
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -110,7 +110,8 @@ public class RespondViaSmsManager extends CallsManagerListenerBase {
                QuickResponseUtils.maybeMigrateLegacyQuickResponses(context);

                final SharedPreferences prefs = context.getSharedPreferences(
                        QuickResponseUtils.SHARED_PREFERENCES_NAME, Context.MODE_PRIVATE);
                        QuickResponseUtils.SHARED_PREFERENCES_NAME,
                        Context.MODE_PRIVATE | Context.MODE_MULTI_PROCESS);
                final Resources res = context.getResources();

                final ArrayList<String> textMessages = new ArrayList<>(