Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2299a9be authored by Abhishek Aggarwal's avatar Abhishek Aggarwal
Browse files

Settings: Change updater summary for /e/OS version

parent bb1b56de
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -218,4 +218,7 @@
    <!-- Factory Reset -->
    <string name="main_clear_desc_e" product="tablet">This will erase all data from your tablet\u2019s <b>internal storage</b>, including:\n\n<li>All your account</li>\n<li>System and app data and settings</li>\n<li>Downloaded apps</li></string>
    <string name="main_clear_desc_e" product="default">This will erase all data from your phone\u2019s <b>internal storage</b>, including:\n\n<li>All your account</li>\n<li>System and app data and settings</li>\n<li>Downloaded apps</li></string>

    <!-- Summary of /e/ version info [CHAR LIMIT=NONE] -->
    <string name="e_version_summary">Updated to /e/OS v<xliff:g id="version" example="6.0">%1$s</xliff:g></string>
</resources>
+5 −2
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.os.PersistableBundle;
import android.os.SystemProperties;
import android.os.SystemUpdateManager;
import android.os.UserManager;
import android.telephony.CarrierConfigManager;
@@ -45,6 +46,8 @@ public class SystemUpdatePreferenceController extends BasePreferenceController {

    private static final String KEY_SYSTEM_UPDATE_SETTINGS = "top_level_update";

    private static final String E_OS_VERSION_PROP = "ro.lineage.build.version";

    private final UserManager mUm;
    private final SystemUpdateManager mUpdateManager;

@@ -88,8 +91,8 @@ public class SystemUpdatePreferenceController extends BasePreferenceController {

    @Override
    public CharSequence getSummary() {
        CharSequence summary = mContext.getString(R.string.android_version_summary,
                Build.VERSION.RELEASE_OR_CODENAME);
        CharSequence summary = mContext.getString(R.string.e_version_summary,
                SystemProperties.get(E_OS_VERSION_PROP));
        final FutureTask<Bundle> bundleFutureTask = new FutureTask<>(
                // Put the API call in a future to avoid StrictMode violation.
                () -> mUpdateManager.retrieveSystemUpdateInfo());