Skip to content

Commit

Permalink
Fix DataSetObserver issue
Browse files Browse the repository at this point in the history
  • Loading branch information
natario1 committed May 29, 2017
1 parent a914181 commit 74212c3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ public void showPopup(CharSequence query) {
log("showPopup: called with filter "+query);
if (!isPopupShowing()) {
log("showPopup: showing");
popup.setView(presenter.getView());
presenter.registerDataSetObserver(new Observer()); // Calling new to avoid leaking... maybe...
popup.setView(presenter.getView());
presenter.showView();
popup.show();
if (callback != null) callback.onPopupVisibilityChanged(true);
Expand Down

0 comments on commit 74212c3

Please sign in to comment.