mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-08-03 18:56:44 -04:00
fix lint errors
This commit is contained in:
parent
d88b39eec9
commit
08099255ee
@ -281,8 +281,8 @@ public class DownloadService extends Service {
|
|||||||
public void pauseDownload(int notificationID) {
|
public void pauseDownload(int notificationID) {
|
||||||
Log.i(KIWIX_TAG, "Pausing ZIM Download for notificationID: " + notificationID);
|
Log.i(KIWIX_TAG, "Pausing ZIM Download for notificationID: " + notificationID);
|
||||||
downloadStatus.put(notificationID, PAUSE);
|
downloadStatus.put(notificationID, PAUSE);
|
||||||
notification.get(notificationID).mActions.get(0).title = getString(R.string.download_resume);
|
//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).icon = R.drawable.ic_play_arrow_black_24dp;
|
||||||
notification.get(notificationID).setContentText(getString(R.string.download_paused));
|
notification.get(notificationID).setContentText(getString(R.string.download_paused));
|
||||||
notificationManager.notify(notificationID, notification.get(notificationID).build());
|
notificationManager.notify(notificationID, notification.get(notificationID).build());
|
||||||
// if (DownloadFragment.downloadAdapter != null) {
|
// if (DownloadFragment.downloadAdapter != null) {
|
||||||
@ -406,7 +406,7 @@ public class DownloadService extends Service {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
notification.get(notificationID).setContentIntent(pendingIntent);
|
notification.get(notificationID).setContentIntent(pendingIntent);
|
||||||
notification.get(notificationID).mActions.clear();
|
//notification.get(notificationID).mActions.clear();
|
||||||
TestingUtils.unbindResource(DownloadService.class);
|
TestingUtils.unbindResource(DownloadService.class);
|
||||||
}
|
}
|
||||||
notification.get(notificationID).setProgress(100, progress, false);
|
notification.get(notificationID).setProgress(100, progress, false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user