Merged in PhotonQyv/mastodon_etalab/ContentTranslated_TypefaceChange (pull request #132)

Added code to change font for translations too.
This commit is contained in:
PhotonQyv 2017-10-13 04:51:02 +00:00 committed by tom79
commit d821857a6f
1 changed files with 1 additions and 0 deletions

View File

@ -576,6 +576,7 @@ public class StatusListAdapter extends BaseAdapter implements OnPostActionInterf
if( status.isTranslationShown()){ if( status.isTranslationShown()){
holder.status_content.setVisibility(View.GONE); holder.status_content.setVisibility(View.GONE);
holder.status_content_translated_container.setVisibility(View.VISIBLE); holder.status_content_translated_container.setVisibility(View.VISIBLE);
holder.status_content_translated.setTypeface(tf);
}else { //Toot is not translated }else { //Toot is not translated
holder.status_content.setVisibility(View.VISIBLE); holder.status_content.setVisibility(View.VISIBLE);
holder.status_content_translated_container.setVisibility(View.GONE); holder.status_content_translated_container.setVisibility(View.GONE);