mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-05-23 16:08:34 -04:00
Don't listen for the same broadcast events twice.
Caused crashes when we incorrectly provided info to the recyler view about which items had been added/removed.
This commit is contained in:
@@ -69,7 +69,8 @@ class MainViewAdapter extends RecyclerView.Adapter<MainViewController> {
|
||||
holder.bindSwapView();
|
||||
break;
|
||||
case R.id.updates:
|
||||
holder.bindUpdates();
|
||||
// Hold of until onViewAttachedToWindow, because that is where we want to start listening
|
||||
// for broadcast events (which is what the data binding does).
|
||||
break;
|
||||
case R.id.settings:
|
||||
holder.bindSettingsView();
|
||||
|
||||
Reference in New Issue
Block a user