447 |
DepartureList.this.getListView().setVisibility(View.VISIBLE); |
DepartureList.this.getListView().setVisibility(View.VISIBLE); |
448 |
|
|
449 |
|
|
450 |
// handle notification icon. |
// handle notification icon. |
451 |
if ( hasNotifications() ) { |
View notifIcon = findViewById(R.id.notifIcon); |
452 |
View notifIcon = findViewById(R.id.notifIcon); |
if ( hasNotifications() ) { |
453 |
notifIcon.setVisibility(View.VISIBLE); |
notifIcon.setVisibility(View.VISIBLE); |
454 |
notifIcon.setClickable(true); |
notifIcon.setClickable(true); |
455 |
notifIcon.setOnClickListener( new View.OnClickListener() { |
notifIcon.setOnClickListener( new View.OnClickListener() { |
460 |
startActivity(i); |
startActivity(i); |
461 |
} |
} |
462 |
}); |
}); |
463 |
} |
} else { |
464 |
|
notifIcon.setVisibility(View.INVISIBLE); |
465 |
|
} |
466 |
|
|
467 |
if (departures.entries.size() == 0) { |
if (departures.entries.size() == 0) { |
468 |
int msgId = (arrival==false) ? R.string.departurelist_nodepartures : R.string.departurelist_noarrivals; |
int msgId = (arrival==false) ? R.string.departurelist_nodepartures : R.string.departurelist_noarrivals; |