Fix button names in download notification

This commit is contained in:
Adeel Zafar 2019-02-13 17:40:02 +05:00 committed by Isaac Hutt
parent 2f207ac361
commit 4923fd24f0
2 changed files with 2 additions and 2 deletions

View File

@ -278,7 +278,7 @@ 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_play);
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());

View File

@ -93,9 +93,9 @@
<string name="zim_file_downloading">Downloading</string>
<string name="zim_file_downloaded">Downloaded</string>
<string name="download_pause">Pause</string>
<string name="download_play">Play</string>
<string name="download_stop">Stop</string>
<string name="download_paused">paused</string>
<string name="download_resume">Resume</string>
<string name="no_downloads_here">No downloads here</string>
<string name="no_files_here">No files here</string>
<string name="download_complete_snackbar">Download complete</string>