Commit 21b9d05b authored by luca020400's avatar luca020400 Committed by Danny Baumann

Jelly: Check for onChanged in history data observer

Change-Id: I337e64647b1547e52082e9e017b48e6527be4523
parent 1ea2382d
......@@ -44,12 +44,7 @@ public class HistoryActivity extends AppCompatActivity {
private final RecyclerView.AdapterDataObserver mAdapterDataObserver =
new RecyclerView.AdapterDataObserver() {
@Override
public void onItemRangeInserted(int positionStart, int itemCount) {
updateHistoryView(mAdapter.getItemCount() == 0);
}
@Override
public void onItemRangeRemoved(int positionStart, int itemCount) {
public void onChanged() {
updateHistoryView(mAdapter.getItemCount() == 0);
}
};
......
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