Skip to content

Commit

Permalink
Fix empty modules list tip display
Browse files Browse the repository at this point in the history
Signed-off-by: Jaida Wu <mlgmxyysd@meowcat.org>
  • Loading branch information
MlgmXyysd committed Jul 21, 2023
1 parent 6f51769 commit e23f59e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ private void setButtonsEnabled(boolean value) {
}

private void setModuleViewListVisible() {
boolean value = WorldOfGoo.getAvailableAddins().size() != 0;
boolean value = modListAdapter.getCount() != 0;
modsGrid.setVisibility(value ? View.VISIBLE : View.GONE);
list_empty_tip.setVisibility(value ? View.GONE : View.VISIBLE);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

public class ModulesAdapter extends RecyclerView.Adapter<ModulesAdapter.ModulesViewHolder> {
private final Context mContext;

public ArrayList<Object> list = new ArrayList<>();
private boolean removeMode = false;

Expand Down

0 comments on commit e23f59e

Please sign in to comment.