/[projects]/android/TrainInfo/src/dk/thoerup/traininfo/DepartureList.java
ViewVC logotype

Diff of /android/TrainInfo/src/dk/thoerup/traininfo/DepartureList.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1027 by torben, Wed Sep 8 06:03:45 2010 UTC revision 1028 by torben, Wed Sep 8 06:25:13 2010 UTC
# Line 108  public class DepartureList extends ListA Line 108  public class DepartureList extends ListA
108                  } else {                  } else {
109                          ((TextView) findViewById(R.id.stationDistance)).setVisibility(View.GONE);                          ((TextView) findViewById(R.id.stationDistance)).setVisibility(View.GONE);
110                  }                  }
111                            
112                    ProviderFactory.purgeOldEntries(); //cleanup before fetching more data
113                    
114                  if (station.isRegional() == false && station.isSTrain() == false) {                  if (station.isRegional() == false && station.isSTrain() == false) {
115                          getListView().setVisibility( View.GONE );                                        getListView().setVisibility( View.GONE );              
# Line 137  public class DepartureList extends ListA Line 138  public class DepartureList extends ListA
138                  }                  }
139          }          }
140                    
         @Override  
         protected void onStart() {  
                 super.onStart();  
                 ProviderFactory.purgeOldEntries();  
         }  
           
141          boolean hasNotifications() {          boolean hasNotifications() {
142                  return (departures != null && departures.notifications.size() > 0);                  return (departures != null && departures.notifications.size() > 0);
143          }          }

Legend:
Removed from v.1027  
changed lines
  Added in v.1028

  ViewVC Help
Powered by ViewVC 1.1.20