mirror of
https://github.com/bspeice/UNCCGameDay
synced 2025-07-15 20:55:08 -04:00
Minor cleanups
This commit is contained in:
@ -18,13 +18,12 @@ public class AlertService extends IntentService {
|
||||
@Override
|
||||
protected void onHandleIntent(Intent intent) {
|
||||
// Go fetch all the alerts!
|
||||
Context appContext = GameDay.getAppContext();
|
||||
AlertDB dbHandle = new AlertDB();
|
||||
List<Alert> alerts = dbHandle.fetchUnread();
|
||||
new AlertFetcher().fetchAlerts(this);
|
||||
List<Alert> alerts = new AlertDB().fetchUnread();
|
||||
|
||||
// And then display all of them!
|
||||
for (Alert a: alerts) {
|
||||
a.displayNotification(appContext);
|
||||
a.displayNotification(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user