Browse Source

fixed filtering bug in records overview

Julien Clauter 10 years ago
parent
commit
a2c9de63fa

+ 1 - 1
src/de/tudarmstadt/informatik/hostage/ui/LogFilter.java

@@ -185,7 +185,7 @@ public class LogFilter implements Parcelable{
     public boolean isSet(){
         boolean hasTime = this.belowTimestamp != Long.MAX_VALUE|| this.aboveTimestamp != Long.MIN_VALUE;
         boolean hasBSSIDs = this.getBSSIDs().size() > 0;
-        boolean hasESSIDs = this.getBSSIDs().size() > 0;
+        boolean hasESSIDs = this.getESSIDs().size() > 0;
         boolean hasProtocols = this.getProtocols().size() > 0;
 
         return hasBSSIDs || hasESSIDs || hasProtocols | hasTime;

+ 1 - 0
src/de/tudarmstadt/informatik/hostage/ui2/fragment/RecordOverviewFragment.java

@@ -155,6 +155,7 @@ public class RecordOverviewFragment extends Fragment implements ChecklistDialog.
 		}
 		if(title.equals(FILTER_MENU_TITLE_REMOVE)){
 			this.clearFilter();
+            this.populateListViewFromDB(this.expListView);
 		}
 		if(title.equals(FILTER_MENU_TITLE_TIMESTAMP_BELOW)){
 			this.openTimestampToFilterDialog();