Add some more skeleton to how Alerts should be processed

Create a way to statically get the app context
This commit is contained in:
bspeice
2013-10-07 14:20:20 -04:00
parent 449678316f
commit fa28b411b5
9 changed files with 209 additions and 101 deletions

View File

@ -11,6 +11,7 @@ import android.content.Context;
import android.os.Bundle;
import com.uncc.gameday.R;
import com.uncc.gameday.alerts.AlertFetcher;
public class Home extends MenuActivity {
@ -25,6 +26,6 @@ public class Home extends MenuActivity {
private void getRecentAlerts() {
// Responsible for discovering what the most recent alerts are and showing them.
// Likely should be implemented by querying a local DB of alerts, grabbing recent 20.
new Alerts().fetchAlerts();
new AlertFetcher().fetchAlerts();
}
}