소스 검색

fix in statistics filter button

Julien Clauter 11 년 전
부모
커밋
e6ea90e943
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/de/tudarmstadt/informatik/hostage/ui2/fragment/StatisticsFragment.java

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

@@ -635,7 +635,7 @@ public class StatisticsFragment extends Fragment implements ChecklistDialog.Chec
 
     /**Paints the filter button if the current filter object is set.*/
     private void actualiseFilterButton(){
-        if (this.filter.isSet() ){
+        if ((this.filter.isSet() && (!(this.currentPlotView instanceof BarGraph))|| (this.filter.hasATimestamp() || this.filter.hasBSSIDs() || this.filter.hasESSIDs()))){
             ImageButton filterButton = this.getFilterButton();
             if (filterButton != null){
                 filterButton.setImageResource(R.drawable.ic_filter_pressed);