Skip to content

Commit

Permalink
Read correct value for blob count in slob descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
itkach committed Sep 1, 2014
1 parent 12280b0 commit c764527
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/itkach/aard2/DictionaryListAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public View getView(int position, View convertView, ViewGroup parent) {
SlobDescriptor desc = (SlobDescriptor) getItem(position);
String label = desc.tags.get("label");
String path = desc.path;
int blobCount = desc.blobCount;
long blobCount = desc.blobCount;
boolean available = this.data.resolve(desc) != null;
View view;
if (convertView != null) {
Expand Down
4 changes: 2 additions & 2 deletions src/itkach/aard2/SlobDescriptor.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class SlobDescriptor extends BaseDescriptor {
public Map<String, String> tags;
public boolean enabled;
public int priority;
public int blobCount;
public long blobCount;
public String error;

private Slob slob;
Expand All @@ -22,7 +22,7 @@ void update(Slob s) {
this.id = s.getId().toString();
this.path = s.file.getAbsolutePath();
this.tags = s.getTags();
this.blobCount = s.size();
this.blobCount = s.getBlobCount();
this.error = null;
this.slob = s;
}
Expand Down

0 comments on commit c764527

Please sign in to comment.