Skip to content

Commit

Permalink
Android download notification icon displays correctly on 5.0 and above
Browse files Browse the repository at this point in the history
  • Loading branch information
mhutti1 committed Jul 5, 2016
1 parent c731ce0 commit 88d4a2e
Show file tree
Hide file tree
Showing 14 changed files with 3 additions and 1 deletion.
Binary file added kiwix_notification-web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi-v11/kiwix_notification.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi-v9/kiwix_notification.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-hdpi/kiwix_notification.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi-v11/kiwix_notification.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi-v9/kiwix_notification.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/kiwix_notification.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi-v11/kiwix_notification.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi-v9/kiwix_notification.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/kiwix_notification.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xxhdpi-v11/kiwix_notification.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xxhdpi-v9/kiwix_notification.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xxhdpi/kiwix_notification.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/org/kiwix/kiwixmobile/downloader/DownloadService.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
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;
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit 88d4a2e

Please sign in to comment.