Merge branch 'changes_font' into develop

This commit is contained in:
tom79 2017-10-12 18:29:32 +02:00
commit 202ed4ad69
2 changed files with 5 additions and 0 deletions

Binary file not shown.

View File

@ -15,6 +15,7 @@ package fr.gouv.etalab.mastodon.drawers;
* see <http://www.gnu.org/licenses>. */
import android.graphics.Bitmap;
import android.graphics.Typeface;
import android.os.Handler;
import android.support.design.widget.FloatingActionButton;
import android.support.v7.app.AlertDialog;
@ -567,6 +568,10 @@ public class StatusListAdapter extends BaseAdapter implements OnPostActionInterf
}
}
}
Typeface tf = Typeface.createFromAsset(context.getAssets(), "fonts/WorkSans-Regular.ttf");
holder.status_content.setTypeface(tf);
//Toot was translated and user asked to see it
if( status.isTranslationShown()){
holder.status_content.setVisibility(View.GONE);