Added code to change font for notifications.
This commit is contained in:
parent
202ed4ad69
commit
ef08f55b16
|
@ -17,6 +17,7 @@ package fr.gouv.etalab.mastodon.drawers;
|
|||
import android.content.ClipData;
|
||||
import android.content.ClipboardManager;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.Typeface;
|
||||
import android.os.Handler;
|
||||
import android.support.v7.app.AlertDialog;
|
||||
import android.content.Context;
|
||||
|
@ -301,6 +302,9 @@ public class NotificationsListAdapter extends BaseAdapter implements OnPostActio
|
|||
holder.status_reblog_count.setText(String.valueOf(status.getReblogs_count()));
|
||||
holder.status_date.setText(Helper.dateDiff(context, status.getCreated_at()));
|
||||
|
||||
Typeface tf = Typeface.createFromAsset(context.getAssets(), "fonts/Bookerly.ttf");
|
||||
holder.notification_status_content.setTypeface(tf);
|
||||
|
||||
//Adds attachment -> disabled, to enable them uncomment the line below
|
||||
//loadAttachments(status, holder);
|
||||
holder.notification_status_container.setVisibility(View.VISIBLE);
|
||||
|
|
Loading…
Reference in New Issue