Add notification to download

This commit is contained in:
Victor Shcherb 2015-10-21 23:48:48 +02:00
parent e54bf89a86
commit bccbc2bd8b

View file

@ -120,6 +120,7 @@ public class DownloadIndexesThread {
contentText.append(i.getVisibleName(app, app.getRegions()));
}
bld.setContentTitle(msg).setSmallIcon(R.drawable.ic_action_import).
setContentText(contentText.toString()).
setContentIntent(contentPendingIntent).setOngoing(true);
int progress = getCurrentDownloadingItemProgress();
bld.setProgress(100, Math.max(progress, 0), progress < 0);