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

Commit a5913b3b authored by Yorke Lee's avatar Yorke Lee Committed by Android (Google) Code Review
Browse files

Merge "Use roboto light font for ActionBar title for CallLogActivity"

parents dc3fd706 b7611d79
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -527,6 +527,10 @@
         [CHAR LIMIT=15] -->
    <string name="call_log_missed_title">Missed</string>

    <!-- String resource for the font-family to use for the call log activity's title
         Do not translate. -->
    <string name="call_log_activity_title_font_family">sans-serif-light</string>

    <!-- Text displayed when the list of missed calls is empty -->
    <string name="recentMissed_empty">No recent missed calls.</string>

+8 −0
Original line number Diff line number Diff line
@@ -29,6 +29,9 @@ import android.support.v13.app.FragmentPagerAdapter;
import android.support.v4.view.PagerTabStrip;
import android.support.v4.view.ViewPager;
import android.support.v4.view.ViewPager.OnPageChangeListener;
import android.text.Spannable;
import android.text.SpannableString;
import android.text.style.TypefaceSpan;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
@@ -119,6 +122,11 @@ public class NewCallLogActivity extends Activity {
        actionBar.setDisplayHomeAsUpEnabled(true);
        actionBar.setDisplayShowTitleEnabled(true);

        final SpannableString s = new SpannableString(getString(R.string.call_log_activity_title));
        s.setSpan(new TypefaceSpan(getString(R.string.call_log_activity_title_font_family)), 0,
                s.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
        actionBar.setTitle(s);

        final Tab allTab = actionBar.newTab();
        final String allTitle = getString(R.string.call_log_all_title);
        allTab.setContentDescription(allTitle);