Prepares release 1.8.7.1

This commit is contained in:
stom79 2018-04-25 15:28:21 +02:00
parent af17b084b6
commit 84a6e4b708
3 changed files with 4 additions and 4 deletions

View File

@ -7,8 +7,8 @@ android {
applicationId "fr.gouv.etalab.mastodon"
minSdkVersion 15
targetSdkVersion 27
versionCode 119
versionName "1.8.7"
versionCode 120
versionName "1.8.7.1"
}
flavorDimensions "default"
buildTypes {

View File

@ -746,7 +746,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
else
holder.status_reblog_count.setText(String.valueOf(status.getReblog().getReblogs_count()));
}
if( type == RetrieveFeedsAsyncTask.Type.CONTEXT) {
if( getItemViewType(position) == FOCUSED_STATUS) {
String fullDate_tmp = Helper.dateDiffFull(status.getCreated_at());
String fullDate = fullDate_tmp.substring(0,1).toUpperCase() + fullDate_tmp.substring(1);
holder.status_toot_date.setText(fullDate);

View File

@ -609,7 +609,7 @@ public class Helper {
public static String dateDiffFull(Date dateToot){
SimpleDateFormat df = (SimpleDateFormat) DateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.MEDIUM, Locale.getDefault());
SimpleDateFormat df = (SimpleDateFormat) DateFormat.getDateTimeInstance(DateFormat.LONG, DateFormat.MEDIUM, Locale.getDefault());
return df.format(dateToot);
}