Clover Coverage Report - WhatYouEat Coverage Report
Coverage timestamp: sab gen 3 2015 15:14:15 EST
../../../img/srcFileCovDistChart10.png 0% of files have more coverage
7   38   3   2,33
0   22   0,43   3
3     1  
1    
This report was generated with an evaluation server license. Purchase Clover or configure your license.
 
  FoodRemovalScroller       Line # 8 7 3 100% 1.0
 
No Tests
 
1    package co.harlequinmettle.healthfoodconcepts;
2   
3    import java.util.TreeMap;
4   
5    import android.content.Context;
6    import android.view.View;
7   
 
8    public class FoodRemovalScroller extends SubScroll{
9   
10   
11    View.OnClickListener foodRemovalListener = new View.OnClickListener() {
 
12  3 toggle public void onClick(View view) {
13   
14  3 for(TreeMap<Integer, Boolean> foodi : WhatYouEat.allMyFoods){
15  75 foodi.remove(view.getId());
16  75 removeButtonById(view.getId());
17    }
18  3 WhatYouEat.saveObject(WhatYouEat.allMyFoods, "MYFOODS");
19    }
20   
21    };
22   
23   
24   
 
25  1 toggle FoodRemovalScroller(Context c) {
26  1 super(c);
27    // addScrollingButtons(String[] buttonNames, int[] buttonIds, View.OnClickListener listener, int BUTTON_CLR) {
28  1 addScrollingButtons(WhatYouEat.getMyFoodsAsTextArray(),WhatYouEat.getMyFoodsIdsArray(),foodRemovalListener,0);
29   
30    }
31   
32   
 
33  75 toggle private void removeButtonById(int id) {
34  75 instanceChild.removeView(instanceChild.findViewById(id));
35    }
36   
37   
38    }