Android download notification icon displays correctly on 5.0 and above
BIN
kiwix_notification-web.png
Normal file
After Width: | Height: | Size: 9.3 KiB |
BIN
res/drawable-hdpi-v11/kiwix_notification.png
Normal file
After Width: | Height: | Size: 659 B |
BIN
res/drawable-hdpi-v9/kiwix_notification.png
Normal file
After Width: | Height: | Size: 625 B |
BIN
res/drawable-hdpi/kiwix_notification.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
res/drawable-mdpi-v11/kiwix_notification.png
Normal file
After Width: | Height: | Size: 417 B |
BIN
res/drawable-mdpi-v9/kiwix_notification.png
Normal file
After Width: | Height: | Size: 416 B |
BIN
res/drawable-mdpi/kiwix_notification.png
Normal file
After Width: | Height: | Size: 713 B |
BIN
res/drawable-xhdpi-v11/kiwix_notification.png
Normal file
After Width: | Height: | Size: 890 B |
BIN
res/drawable-xhdpi-v9/kiwix_notification.png
Normal file
After Width: | Height: | Size: 866 B |
BIN
res/drawable-xhdpi/kiwix_notification.png
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
res/drawable-xxhdpi-v11/kiwix_notification.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
res/drawable-xxhdpi-v9/kiwix_notification.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
res/drawable-xxhdpi/kiwix_notification.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
@ -4,6 +4,7 @@ import android.app.NotificationManager;
|
||||
import android.app.Service;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
import android.graphics.Color;
|
||||
import android.os.Environment;
|
||||
import android.os.IBinder;
|
||||
import android.support.annotation.Nullable;
|
||||
@ -44,7 +45,8 @@ public class DownloadService extends Service {
|
||||
notification = new NotificationCompat.Builder(this)
|
||||
.setContentTitle("Download Zim")
|
||||
.setProgress(100, 0, false)
|
||||
.setSmallIcon(R.mipmap.kiwix_icon)
|
||||
.setSmallIcon(R.drawable.kiwix_notification)
|
||||
.setColor(Color.BLACK)
|
||||
.setOngoing(true);
|
||||
|
||||
startForeground(DownloadIntent.DOWNLOAD_NOTIFICATION_ID, notification.build());
|
||||
|