Improve key profile adapter notification code

This commit is contained in:
Alexander Bakker 2017-12-12 21:28:09 +01:00
parent ed86d6ac8e
commit a66d94a743
3 changed files with 8 additions and 13 deletions

View file

@ -33,8 +33,7 @@ public class KeyProfileHolder extends RecyclerView.ViewHolder {
}
public void setData(KeyProfile profile) {
_keyProfile = profile;
if (_keyProfile == null) {
if ((_keyProfile = profile) == null) {
return;
}