mirror of
https://github.com/f-droid/fdroidclient.git
synced 2026-10-04 18:17:07 -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:
1 parent
d4584083af
commit
ba503812e4
1 file changed
+2
-1
@@ -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