Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
itning committed Feb 12, 2019
1 parent ff2f54b commit 32a335d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ class MainActivity : BaseActivity(), NavigationView.OnNavigationItemSelectedList
.setView(appCompatSpinner)
.setPositiveButton("确定") { _, _ ->
if (appCompatSpinner.selectedItem.toString() != tempNumberOfWeek) {
EventBus.getDefault().post(EventEntity(ConstantPool.Int.CLASS_WEEK_CHANGE, appCompatSpinner.selectedItem.toString()))
tempNumberOfWeek = appCompatSpinner.selectedItem.toString()
EventBus.getDefault().post(EventEntity(ConstantPool.Int.CLASS_WEEK_CHANGE, tempNumberOfWeek))
}
}
.show()
Expand Down

0 comments on commit 32a335d

Please sign in to comment.