Show toast if message sending failed.

Added resetting
This commit is contained in:
Mikunj
2019-10-02 12:20:18 +10:00
parent 373b9b38f6
commit 72059328b3
6 changed files with 76 additions and 23 deletions

View File

@@ -172,8 +172,7 @@ public class IdentityKeyUtil {
if (!preferencesEditor.commit()) throw new AssertionError("failed to save identity key/value to shared preferences");
}
private static void delete(Context context, String key) {
public static void delete(Context context, String key) {
context.getSharedPreferences(MasterSecretUtil.PREFERENCES_NAME, 0).edit().remove(key).commit();
}
}