Fix crash when trying to insert an account that already exists in the database.

This commit is contained in:
Severiano Jaramillo 2018-12-14 16:02:00 -06:00
parent a2c2c315b9
commit 5659a1dd8c
2 changed files with 2 additions and 1 deletions

View file

@ -24,6 +24,7 @@
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement -dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
-dontwarn org.bitcoinj.store** -dontwarn org.bitcoinj.store**
-dontwarn org.slf4j.** -dontwarn org.slf4j.**
-dontwarn okhttp3.internal.platform.*
# Firabase Crashlytics # Firabase Crashlytics
-keepattributes *Annotation* -keepattributes *Annotation*

View file

@ -9,7 +9,7 @@ import cy.agorise.bitsybitshareswallet.database.entities.UserAccount
@Dao @Dao
interface UserAccountDao { interface UserAccountDao {
@Insert @Insert(onConflict = OnConflictStrategy.REPLACE)
fun insert(userAccount: UserAccount) fun insert(userAccount: UserAccount)
@Insert(onConflict = OnConflictStrategy.REPLACE) @Insert(onConflict = OnConflictStrategy.REPLACE)