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

Unverified Commit ac8dee2f authored by LuK1337's avatar LuK1337
Browse files

Migrate AboutFragment from BuildConfig to Utils.getVersionCode()

Change-Id: I7e7779efe3ca0d3299f3eb132a961c89bac75109
parent 3e885fc2
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -29,7 +29,6 @@ import android.widget.TextView
import androidx.fragment.app.Fragment
import ws.xsoh.etar.R
import java.util.Calendar
import ws.xsoh.etar.BuildConfig

class AboutFragment : Fragment() {
    override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
@@ -39,7 +38,7 @@ class AboutFragment : Fragment() {
    override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
        super.onViewCreated(view, savedInstanceState)

        view.findViewById<TextView>(R.id.version).text = BuildConfig.VERSION_NAME
        view.findViewById<TextView>(R.id.version).text = Utils.getVersionCode(context)

        val year = Calendar.getInstance().get(Calendar.YEAR).toString()
        view.findViewById<TextView>(R.id.copyright).text = getString(R.string.app_copyright, year)