Commit ae4e57ab authored by Mygod's avatar Mygod

Fix profile selection

parent dbb137c5
......@@ -91,7 +91,12 @@ final class ProfilesFragment extends ToolbarFragment with OnMenuItemClickListene
}
}
def onClick(v: View): Unit = app.switchProfile(item.id)
def onClick(v: View) {
val old = app.profileId
app.switchProfile(item.id)
profilesAdapter.refreshId(old)
bind(item)
}
}
private class ProfilesAdapter extends RecyclerView.Adapter[ProfileViewHolder] {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment