Skip to content

Commit

Permalink
Merge pull request #989 from GibsonRuitiari/main
Browse files Browse the repository at this point in the history
Fix Pending Status persists for all successful transactions
  • Loading branch information
jumaallan authored Mar 27, 2023
2 parents 1635333 + 357775e commit 7c732a8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class AccountsViewModel(application: Application, val repo: AccountRepo, val act
private fun loadActions(account: Account, type: String) = viewModelScope.launch(Dispatchers.IO) {
institutionActions.postValue(
if (type == HoverAction.P2P) actionRepo.getTransferActions(account.institutionId!!, account.countryAlpha2!!)
else actionRepo.getActions(account.institutionId!!, account.countryAlpha2!!, type)
else actionRepo.getActions(account.institutionId, account.countryAlpha2!!, type)
)
}

Expand Down
1 change: 1 addition & 0 deletions app/src/main/java/com/hover/stax/database/AppDatabase.kt
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ abstract class AppDatabase : RoomDatabase() {
AppDatabase::class.java,
"stax.db"
)
.enableMultiInstanceInvalidation()
.setJournalMode(JournalMode.WRITE_AHEAD_LOGGING)
.addMigrations(
Migrations.M23_24,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@ class SimViewModel(private val listSimsUseCase: ListSimsUseCase, val application
fetchSims()
}
}

loadSims()
}

private fun loadSims() {
fetchSims()

simReceiver?.let {
LocalBroadcastManager.getInstance(application)
.registerReceiver(it, IntentFilter(Utils.getPackage(application) + ".NEW_SIM_INFO_ACTION"))
Expand Down

0 comments on commit 7c732a8

Please sign in to comment.