mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-26 11:21:55 +00:00
use apply for preferences instead of commit
// FREEBIE
This commit is contained in:
committed by
Moxie Marlinspike
parent
d8e6a93584
commit
34e147838a
@@ -215,6 +215,6 @@ public class ApplicationMigrationService extends Service
|
||||
}
|
||||
|
||||
public static void setDatabaseImported(Context context) {
|
||||
context.getSharedPreferences(PREFERENCES_NAME, 0).edit().putBoolean(DATABASE_MIGRATED, true).commit();
|
||||
context.getSharedPreferences(PREFERENCES_NAME, 0).edit().putBoolean(DATABASE_MIGRATED, true).apply();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user