fix lint errors

This commit is contained in:
Sean Mac Gillicuddy 2019-06-17 15:34:49 +01:00
parent d88b39eec9
commit 08099255ee

View File

@ -281,8 +281,8 @@ public class DownloadService extends Service {
public void pauseDownload(int notificationID) {
Log.i(KIWIX_TAG, "Pausing ZIM Download for notificationID: " + notificationID);
downloadStatus.put(notificationID, PAUSE);
notification.get(notificationID).mActions.get(0).title = getString(R.string.download_resume);
notification.get(notificationID).mActions.get(0).icon = R.drawable.ic_play_arrow_black_24dp;
//notification.get(notificationID).mActions.get(0).title = getString(R.string.download_resume);
//notification.get(notificationID).mActions.get(0).icon = R.drawable.ic_play_arrow_black_24dp;
notification.get(notificationID).setContentText(getString(R.string.download_paused));
notificationManager.notify(notificationID, notification.get(notificationID).build());
// if (DownloadFragment.downloadAdapter != null) {
@ -406,7 +406,7 @@ public class DownloadService extends Service {
}
});
notification.get(notificationID).setContentIntent(pendingIntent);
notification.get(notificationID).mActions.clear();
//notification.get(notificationID).mActions.clear();
TestingUtils.unbindResource(DownloadService.class);
}
notification.get(notificationID).setProgress(100, progress, false);