mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-25 12:08:36 +00:00
use apply for preferences instead of commit
// FREEBIE
This commit is contained in:
committed by
Moxie Marlinspike
parent
d8e6a93584
commit
34e147838a
@@ -64,7 +64,7 @@ public class CanonicalSessionMigrator {
|
||||
}
|
||||
}
|
||||
|
||||
context.getSharedPreferences("SecureSMS", Context.MODE_PRIVATE).edit().putBoolean("canonicalized", true).commit();
|
||||
context.getSharedPreferences("SecureSMS", Context.MODE_PRIVATE).edit().putBoolean("canonicalized", true).apply();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -223,7 +223,7 @@ public class SmsMigrator {
|
||||
}
|
||||
|
||||
context.getSharedPreferences("SecureSMS", Context.MODE_PRIVATE).edit()
|
||||
.putBoolean("migrated", true).commit();
|
||||
.putBoolean("migrated", true).apply();
|
||||
}
|
||||
|
||||
public interface SmsMigrationProgressListener {
|
||||
|
||||
Reference in New Issue
Block a user