Advertisement
Guest User

Untitled

a guest
Oct 17th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. fun createDatabaseForNewUser(userId: String): Boolean {
  2. try {
  3. FlowManager.destroy()
  4. }
  5. catch (e: Exception) {
  6. Timber.e("Exception thrown attempting to destroy dbflow database")
  7. }
  8. val succesInitNewDb = openDbWithPreLoginUserId("pwcwelcome123", MyMobility.myMobility)
  9. val successUpdateKey = try {
  10. updateDbKeyAfterSignIn(userId)
  11. true
  12. }catch (e: Exception) { false}
  13.  
  14. return succesInitNewDb && successUpdateKey
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement