Loading res/values/strings.xml +1 −0 Original line number Diff line number Diff line Loading @@ -106,6 +106,7 @@ <string name="list_no_updates">No new updates found. To manually check for new updates, use the Refresh button.</string> <string name="action_download">Download</string> <string name="action_download_install">Update</string> <string name="action_pause">Pause</string> <string name="action_resume">Resume</string> <string name="action_install">Install</string> Loading src/org/lineageos/updater/UpdatesListAdapter.java +6 −3 Original line number Diff line number Diff line Loading @@ -255,7 +255,8 @@ public class UpdatesListAdapter extends RecyclerView.Adapter<UpdatesListAdapter. if (update == null) { // The update was deleted viewHolder.mAction.setEnabled(false); viewHolder.mAction.setText(R.string.action_download); viewHolder.mAction.setText(Utils.isABDevice() ? R.string.action_download_install : R.string.action_download); return; } Loading Loading @@ -337,7 +338,8 @@ public class UpdatesListAdapter extends RecyclerView.Adapter<UpdatesListAdapter. .setTitle(R.string.update_on_mobile_data_title) .setMessage(R.string.update_on_mobile_data_message) .setView(checkboxView) .setPositiveButton(R.string.action_download, .setPositiveButton(Utils.isABDevice() ? R.string.action_download_install : R.string.action_download, (dialog, which) -> { if (checkbox.isChecked()) { preferences.edit() Loading @@ -356,7 +358,8 @@ public class UpdatesListAdapter extends RecyclerView.Adapter<UpdatesListAdapter. final View.OnClickListener clickListener; switch (action) { case DOWNLOAD: button.setText(R.string.action_download); button.setText(Utils.isABDevice() ? R.string.action_download_install : R.string.action_download); button.setEnabled(enabled); clickListener = enabled ? view -> startDownloadWithWarning(downloadId) : null; break; Loading src/org/lineageos/updater/controller/UpdaterService.java +14 −10 Original line number Diff line number Diff line Loading @@ -343,6 +343,7 @@ public class UpdaterService extends Service { } case VERIFIED: { stopForeground(STOP_FOREGROUND_DETACH); if (!Utils.isABDevice()) { mNotificationBuilder.setStyle(null); mNotificationBuilder.setSmallIcon(R.drawable.ic_system_update); mNotificationBuilder.setProgress(0, 0, false); Loading @@ -353,6 +354,9 @@ public class UpdaterService extends Service { mNotificationBuilder.setAutoCancel(true); mNotificationManager.notify(NOTIFICATION_ID, mNotificationBuilder.build()); tryStopSelf(); } else { Utils.triggerUpdate(this, update.getDownloadId()); } break; } case VERIFICATION_FAILED: { Loading Loading
res/values/strings.xml +1 −0 Original line number Diff line number Diff line Loading @@ -106,6 +106,7 @@ <string name="list_no_updates">No new updates found. To manually check for new updates, use the Refresh button.</string> <string name="action_download">Download</string> <string name="action_download_install">Update</string> <string name="action_pause">Pause</string> <string name="action_resume">Resume</string> <string name="action_install">Install</string> Loading
src/org/lineageos/updater/UpdatesListAdapter.java +6 −3 Original line number Diff line number Diff line Loading @@ -255,7 +255,8 @@ public class UpdatesListAdapter extends RecyclerView.Adapter<UpdatesListAdapter. if (update == null) { // The update was deleted viewHolder.mAction.setEnabled(false); viewHolder.mAction.setText(R.string.action_download); viewHolder.mAction.setText(Utils.isABDevice() ? R.string.action_download_install : R.string.action_download); return; } Loading Loading @@ -337,7 +338,8 @@ public class UpdatesListAdapter extends RecyclerView.Adapter<UpdatesListAdapter. .setTitle(R.string.update_on_mobile_data_title) .setMessage(R.string.update_on_mobile_data_message) .setView(checkboxView) .setPositiveButton(R.string.action_download, .setPositiveButton(Utils.isABDevice() ? R.string.action_download_install : R.string.action_download, (dialog, which) -> { if (checkbox.isChecked()) { preferences.edit() Loading @@ -356,7 +358,8 @@ public class UpdatesListAdapter extends RecyclerView.Adapter<UpdatesListAdapter. final View.OnClickListener clickListener; switch (action) { case DOWNLOAD: button.setText(R.string.action_download); button.setText(Utils.isABDevice() ? R.string.action_download_install : R.string.action_download); button.setEnabled(enabled); clickListener = enabled ? view -> startDownloadWithWarning(downloadId) : null; break; Loading
src/org/lineageos/updater/controller/UpdaterService.java +14 −10 Original line number Diff line number Diff line Loading @@ -343,6 +343,7 @@ public class UpdaterService extends Service { } case VERIFIED: { stopForeground(STOP_FOREGROUND_DETACH); if (!Utils.isABDevice()) { mNotificationBuilder.setStyle(null); mNotificationBuilder.setSmallIcon(R.drawable.ic_system_update); mNotificationBuilder.setProgress(0, 0, false); Loading @@ -353,6 +354,9 @@ public class UpdaterService extends Service { mNotificationBuilder.setAutoCancel(true); mNotificationManager.notify(NOTIFICATION_ID, mNotificationBuilder.build()); tryStopSelf(); } else { Utils.triggerUpdate(this, update.getDownloadId()); } break; } case VERIFICATION_FAILED: { Loading