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

Commit 2c28a3d1 authored by Abhishek Aggarwal's avatar Abhishek Aggarwal Committed by Mohammed Althaf T
Browse files

Updater: Rebrand to /e/ OS

Change-Id: Idcf080541eb910c99f9057859d3d777768c7bde2
parent 44126866
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -60,7 +60,7 @@ public class UpdaterReceiver extends BroadcastReceiver {
        SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);
        String buildDate = StringGenerator.getDateLocalizedUTC(context,
                DateFormat.MEDIUM, preferences.getLong(Constants.PREF_INSTALL_NEW_TIMESTAMP, 0));
        String buildInfo = context.getString(R.string.list_build_version_date,
        String buildInfo = context.getString(R.string.list_build_version_date_e,
                BuildInfoUtils.getBuildVersion(), buildDate);

        Intent notificationIntent = new Intent(context, UpdatesActivity.class);
+2 −2
Original line number Diff line number Diff line
@@ -274,7 +274,7 @@ public class UpdatesListAdapter extends RecyclerView.Adapter<UpdatesListAdapter.

        String buildDate = StringGenerator.getDateLocalizedUTC(mActivity,
                DateFormat.LONG, update.getTimestamp());
        String buildVersion = mActivity.getString(R.string.list_build_version,
        String buildVersion = mActivity.getString(R.string.list_build_version_e,
                update.getVersion());
        viewHolder.mBuildDate.setText(buildDate);
        viewHolder.mBuildVersion.setText(buildVersion);
@@ -494,7 +494,7 @@ public class UpdatesListAdapter extends RecyclerView.Adapter<UpdatesListAdapter.

        String buildDate = StringGenerator.getDateLocalizedUTC(mActivity,
                DateFormat.MEDIUM, update.getTimestamp());
        String buildInfoText = mActivity.getString(R.string.list_build_version_date,
        String buildInfoText = mActivity.getString(R.string.list_build_version_date_e,
                update.getVersion(), buildDate);
        return new AlertDialog.Builder(mActivity)
                .setTitle(R.string.apply_update_dialog_title)
+1 −1
Original line number Diff line number Diff line
@@ -497,7 +497,7 @@ public class UpdaterService extends Service {
    private void setNotificationTitle(UpdateInfo update) {
        String buildDate = StringGenerator.getDateLocalizedUTC(this,
                DateFormat.MEDIUM, update.getTimestamp());
        String buildInfo = getString(R.string.list_build_version_date,
        String buildInfo = getString(R.string.list_build_version_date_e,
                update.getVersion(), buildDate);
        mNotificationStyle.setBigContentTitle(buildInfo);
        mNotificationBuilder.setContentTitle(buildInfo);
+8 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
    <!-- /e/ addition begin -->

    <!-- /e/ build version -->
    <string name="list_build_version_e">/e/OS <xliff:g id="version" example="14.1">%1$s</xliff:g></string>
    <string name="list_build_version_date_e">/e/OS <xliff:g id="version" example="14.1">%1$s</xliff:g> - <xliff:g id="date" example="July 11, 2017">%2$s</xliff:g></string>
</resources>