File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/src/main/java/org/thoughtcrime/securesms/keyvalue Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ public boolean isPhoneNumberSharingEnabled() {
5454
5555 public void setPhoneNumberSharingMode (@ NonNull PhoneNumberSharingMode phoneNumberSharingMode ) {
5656 Log .i (TAG , "Setting phone number sharing to: " + phoneNumberSharingMode .name (), new Throwable ());
57- putInteger (SHARING_MODE , phoneNumberSharingMode .serialize ());
57+ getStore (). beginWrite (). putInteger (SHARING_MODE , phoneNumberSharingMode .serialize ()). commit ( );
5858 }
5959
6060 public @ NonNull PhoneNumberDiscoverabilityMode getPhoneNumberDiscoverabilityMode () {
@@ -68,7 +68,7 @@ public void setPhoneNumberDiscoverabilityMode(@NonNull PhoneNumberDiscoverabilit
6868 .beginWrite ()
6969 .putInteger (DISCOVERABILITY_MODE , phoneNumberDiscoverabilityMode .serialize ())
7070 .putLong (DISCOVERABILITY_TIMESTAMP , System .currentTimeMillis ())
71- .apply ();
71+ .commit ();
7272 }
7373
7474 public long getPhoneNumberDiscoverabilityModeTimestamp () {
You can’t perform that action at this time.
0 commit comments