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

Commit 4827afab authored by Aayush Gupta's avatar Aayush Gupta Committed by Mohammed Althaf T
Browse files

Settings: res: Set proper title for system version



Signed-off-by: Aayush Gupta's avatarAayush Gupta <theimpulson@e.email>
Change-Id: I3146e445e7b299086a566a66f8a13708699a91f7
Signed-off-by: default avataralthafvly <althafvly@gmail.com>
parent 4d5d6576
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright Murena SAS 2023
  ~ This program is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~  along with this program.  If not, see <https://www.gnu.org/licenses/>.
  -->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <!-- /e/ version -->
    <string name="e_version">/e/ OS version</string>
</resources>
+2 −1
Original line number Diff line number Diff line
@@ -149,8 +149,9 @@
        <Preference
            android:key="lineage_os_version"
            android:order="43"
            android:title="@*lineageos.platform:string/lineage_version"
            android:title="@string/e_version"
            android:summary="@string/summary_placeholder"
            android:selectable="false"
            settings:enableCopying="true"
            settings:controller="com.android.settings.deviceinfo.firmwareversion.LineageVersionDetailPreferenceController"/>
    </PreferenceCategory>
+2 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ class LineageVersionDetailPreference :
        get() = "lineage_version"

    override val title: Int
        get() = org.lineageos.platform.internal.R.string.lineage_version
        get() = R.string.e_version

    override val indexable
        get() = false
@@ -59,6 +59,7 @@ class LineageVersionDetailPreference :
    override fun bind(preference: Preference, metadata: PreferenceMetadata) {
        super.bind(preference, metadata)
        preference.isCopyingEnabled = true
        preference.isSelectable = false
        preference.onPreferenceClickListener = this
    }