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

Commit 0ce630c3 authored by Abhishek Aggarwal's avatar Abhishek Aggarwal
Browse files

Updater: Rebrand to /e/ OS

Change-Id: Idcf080541eb910c99f9057859d3d777768c7bde2
parent 2afe19b6
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -157,4 +157,10 @@
    <string name="info_dialog_title">Did you know?</string>
    <string name="info_dialog_message">LineageOS updates are full installation packages. That means you can always install only the latest update, even if you skipped some in between!</string>
    <string name="info_dialog_ok">Thanks for the info!</string>

    <!-- /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>
+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
@@ -272,7 +272,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);
@@ -478,7 +478,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
@@ -490,7 +490,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);