diff --git a/app/src/main/java/org/lineageos/updater/UpdatesListAdapter.java b/app/src/main/java/org/lineageos/updater/UpdatesListAdapter.java index ece3eefa8a161c956c39e96a84a7019dd4dd7b85..775584f4fb861c4f1e8286015b6a3b08533d390f 100644 --- a/app/src/main/java/org/lineageos/updater/UpdatesListAdapter.java +++ b/app/src/main/java/org/lineageos/updater/UpdatesListAdapter.java @@ -18,6 +18,7 @@ package org.lineageos.updater; import android.content.Intent; import android.content.SharedPreferences; import android.content.res.Resources; +import android.os.Build; import android.os.PowerManager; import android.text.SpannableString; import android.text.format.Formatter; @@ -90,6 +91,7 @@ public class UpdatesListAdapter extends RecyclerView.Adapter { Utils.triggerUpdate(mActivity, downloadId); diff --git a/app/src/main/java/org/lineageos/updater/model/UpdateBase.java b/app/src/main/java/org/lineageos/updater/model/UpdateBase.java index f1689bceb650eb4470c91c26c9d7b36044e41a59..167e36295c6a0435e77746ade0d0ddd63dfebdf0 100644 --- a/app/src/main/java/org/lineageos/updater/model/UpdateBase.java +++ b/app/src/main/java/org/lineageos/updater/model/UpdateBase.java @@ -38,6 +38,7 @@ public class UpdateBase implements UpdateBaseInfo { mType = update.getType(); mVersion = update.getVersion(); mDisplayVersion = update.getDisplayVersion(); + mAndroidVersion = update.getAndroidVersion(); mFileSize = update.getFileSize(); } diff --git a/app/src/main/res/layout/update_item_view.xml b/app/src/main/res/layout/update_item_view.xml index 7198c37dfd44425184b26f8beddb502875b39eeb..e15864e82f7360fb9d4abe57968ef281a097e94f 100644 --- a/app/src/main/res/layout/update_item_view.xml +++ b/app/src/main/res/layout/update_item_view.xml @@ -39,6 +39,18 @@ android:textSize="16sp" tools:text="LineageOS 20" /> + + Delete the selected update file? Apply update - You are about to install %1$s.\n\nIf you press %2$s, the device will restart itself in recovery mode to install the update.\n\nNote: This feature requires a compatible Recovery or updates will need to be installed manually. - You are about to install %1$s.\n\nIf you press %2$s, the device will begin installing in the background.\n\nOnce completed, you will be prompted to reboot. + You are about to update to %1$s.\n\nIf you press %2$s, the device will restart itself in recovery mode to install the update. + You are about to update to %1$s.\n\nIf you press %2$s, the device will begin installing in the background.\n\nOnce completed, you will be prompted to reboot. + + Version Upgrade! + You are about to upgrade to %1$s, based on Android %2$s\n\nRemember: it is always recommended to backup your data before upgrades.\n\nIf you press %3$s, the device will restart itself into recovery mode to install the update. + You are about to upgrade to %1$s, based on Android %2$s.\n\nRemember: it is always recommended to backup your data before upgrades.\n\nIf you press %3$s, the device will begin installing in the background.\n\nOnce completed, you will be prompted to reboot. Cancel the installation?