Merged in PhotonQyv/mastodon_etalab/NotificationsListAdapter_FontChange (pull request #134)
Added code to change font for notifications (correct font).
This commit is contained in:
commit
e7d91131e1
|
@ -17,6 +17,7 @@ package fr.gouv.etalab.mastodon.drawers;
|
||||||
import android.content.ClipData;
|
import android.content.ClipData;
|
||||||
import android.content.ClipboardManager;
|
import android.content.ClipboardManager;
|
||||||
import android.graphics.Bitmap;
|
import android.graphics.Bitmap;
|
||||||
|
import android.graphics.Typeface;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.support.v7.app.AlertDialog;
|
import android.support.v7.app.AlertDialog;
|
||||||
import android.content.Context;
|
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_reblog_count.setText(String.valueOf(status.getReblogs_count()));
|
||||||
holder.status_date.setText(Helper.dateDiff(context, status.getCreated_at()));
|
holder.status_date.setText(Helper.dateDiff(context, status.getCreated_at()));
|
||||||
|
|
||||||
|
Typeface tf = Typeface.createFromAsset(context.getAssets(), "fonts/WorkSans-Regular.ttf");
|
||||||
|
holder.notification_status_content.setTypeface(tf);
|
||||||
|
|
||||||
//Adds attachment -> disabled, to enable them uncomment the line below
|
//Adds attachment -> disabled, to enable them uncomment the line below
|
||||||
//loadAttachments(status, holder);
|
//loadAttachments(status, holder);
|
||||||
holder.notification_status_container.setVisibility(View.VISIBLE);
|
holder.notification_status_container.setVisibility(View.VISIBLE);
|
||||||
|
|
Loading…
Reference in New Issue