mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 15:13:50 +00:00
Update app icon & implement recovery phrase screen
This commit is contained in:
@@ -1195,6 +1195,14 @@ public class TextSecurePreferences {
|
||||
setStringPreference(context, "master_hex_encoded_public_key", masterHexEncodedPublicKey.toLowerCase());
|
||||
}
|
||||
|
||||
public static Boolean getHasViewedSeed(Context context) {
|
||||
return getBooleanPreference(context, "has_viewed_seed", false);
|
||||
}
|
||||
|
||||
public static void setHasViewedSeed(Context context, Boolean hasViewedSeed) {
|
||||
setBooleanPreference(context, "has_viewed_seed", hasViewedSeed);
|
||||
}
|
||||
|
||||
public static void setResetDatabase(Context context, boolean resetDatabase) {
|
||||
// We do it this way so that it gets persisted in storage straight away
|
||||
PreferenceManager.getDefaultSharedPreferences(context).edit().putBoolean("database_reset", resetDatabase).commit();
|
||||
|
||||
Reference in New Issue
Block a user