Added proper small notification icon
respecting the OS guidelines.
|
@ -175,11 +175,16 @@ public class AlarmIntentService extends IntentService {
|
|||
}
|
||||
|
||||
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)
|
||||
.setSmallIcon(R.drawable.ic_launcher).setWhen(event.getStartTime().getTime())
|
||||
.setContentTitle(event.getTitle()).setContentText(contentText)
|
||||
.setSmallIcon(R.drawable.ic_stat_fosdem)
|
||||
.setWhen(event.getStartTime().getTime())
|
||||
.setContentTitle(event.getTitle())
|
||||
.setContentText(contentText)
|
||||
.setStyle(new NotificationCompat.BigTextStyle().bigText(bigText).setSummaryText(trackName))
|
||||
.setContentInfo(event.getRoomName()).setContentIntent(eventPendingIntent).setAutoCancel(true)
|
||||
.setDefaults(defaultFlags).setPriority(NotificationCompat.PRIORITY_HIGH);
|
||||
.setContentInfo(event.getRoomName())
|
||||
.setContentIntent(eventPendingIntent)
|
||||
.setAutoCancel(true)
|
||||
.setDefaults(defaultFlags)
|
||||
.setPriority(NotificationCompat.PRIORITY_HIGH);
|
||||
|
||||
// Blink the LED with FOSDEM color if enabled in the options
|
||||
if (sharedPreferences.getBoolean(SettingsFragment.KEY_PREF_NOTIFICATIONS_LED, false)) {
|
||||
|
|
BIN
app/src/main/res/drawable-hdpi-v11/ic_stat_fosdem.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
app/src/main/res/drawable-hdpi/ic_stat_fosdem.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
app/src/main/res/drawable-mdpi-v11/ic_stat_fosdem.png
Normal file
After Width: | Height: | Size: 809 B |
BIN
app/src/main/res/drawable-mdpi/ic_stat_fosdem.png
Normal file
After Width: | Height: | Size: 440 B |
BIN
app/src/main/res/drawable-xhdpi-v11/ic_stat_fosdem.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
app/src/main/res/drawable-xhdpi/ic_stat_fosdem.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
app/src/main/res/drawable-xxhdpi-v11/ic_stat_fosdem.png
Normal file
After Width: | Height: | Size: 2 KiB |
BIN
app/src/main/res/drawable-xxhdpi/ic_stat_fosdem.png
Normal file
After Width: | Height: | Size: 1.3 KiB |