1
0
Fork 0
mirror of https://github.com/MatomoCamp/matomocamp-companion-android.git synced 2024-09-19 16:13:46 +02:00

Added proper small notification icon

respecting the OS guidelines.
This commit is contained in:
Christophe Beyls 2015-01-08 03:16:30 +01:00
parent 70ee342fee
commit d372480fa8
9 changed files with 9 additions and 4 deletions

View file

@ -175,11 +175,16 @@ public class AlarmIntentService extends IntentService {
} }
NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this) NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this)
.setSmallIcon(R.drawable.ic_launcher).setWhen(event.getStartTime().getTime()) .setSmallIcon(R.drawable.ic_stat_fosdem)
.setContentTitle(event.getTitle()).setContentText(contentText) .setWhen(event.getStartTime().getTime())
.setContentTitle(event.getTitle())
.setContentText(contentText)
.setStyle(new NotificationCompat.BigTextStyle().bigText(bigText).setSummaryText(trackName)) .setStyle(new NotificationCompat.BigTextStyle().bigText(bigText).setSummaryText(trackName))
.setContentInfo(event.getRoomName()).setContentIntent(eventPendingIntent).setAutoCancel(true) .setContentInfo(event.getRoomName())
.setDefaults(defaultFlags).setPriority(NotificationCompat.PRIORITY_HIGH); .setContentIntent(eventPendingIntent)
.setAutoCancel(true)
.setDefaults(defaultFlags)
.setPriority(NotificationCompat.PRIORITY_HIGH);
// Blink the LED with FOSDEM color if enabled in the options // Blink the LED with FOSDEM color if enabled in the options
if (sharedPreferences.getBoolean(SettingsFragment.KEY_PREF_NOTIFICATIONS_LED, false)) { if (sharedPreferences.getBoolean(SettingsFragment.KEY_PREF_NOTIFICATIONS_LED, false)) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 809 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 440 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB