display date of boost separately
This commit is contained in:
parent
ee18b7b53e
commit
f7c3f1ccb9
|
@ -1158,6 +1158,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
||||||
|
|
||||||
holder.status_account_displayname.setTextColor(theme_text_header_2_line);
|
holder.status_account_displayname.setTextColor(theme_text_header_2_line);
|
||||||
holder.status_toot_date.setTextColor(theme_text_header_2_line);
|
holder.status_toot_date.setTextColor(theme_text_header_2_line);
|
||||||
|
holder.status_boosted_date.setTextColor(theme_text_header_2_line);
|
||||||
Helper.changeDrawableColor(context, R.drawable.ic_repeat_head_toot, theme_text_header_2_line);
|
Helper.changeDrawableColor(context, R.drawable.ic_repeat_head_toot, theme_text_header_2_line);
|
||||||
|
|
||||||
int theme_text_header_1_line = prefs.getInt("theme_text_header_1_line", -1);
|
int theme_text_header_1_line = prefs.getInt("theme_text_header_1_line", -1);
|
||||||
|
@ -1672,6 +1673,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
||||||
holder.status_account_displayname_owner.setText(status.getReblog().getAccount().getAcct().replace("@", ""));
|
holder.status_account_displayname_owner.setText(status.getReblog().getAccount().getAcct().replace("@", ""));
|
||||||
holder.status_account_displayname_owner.setVisibility(View.VISIBLE);
|
holder.status_account_displayname_owner.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
|
holder.status_boosted_date.setText(Helper.dateDiff(context, status.getCreated_at()));
|
||||||
} else {
|
} else {
|
||||||
accountForUrl = status.getAccount();
|
accountForUrl = status.getAccount();
|
||||||
holder.status_account_displayname.setVisibility(View.GONE);
|
holder.status_account_displayname.setVisibility(View.GONE);
|
||||||
|
@ -1820,6 +1822,9 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
||||||
fullDate = fullDate_tmp.substring(0, 1).toUpperCase() + fullDate_tmp.substring(1);
|
fullDate = fullDate_tmp.substring(0, 1).toUpperCase() + fullDate_tmp.substring(1);
|
||||||
holder.status_toot_date.setText(fullDate);
|
holder.status_toot_date.setText(fullDate);
|
||||||
} else {
|
} else {
|
||||||
|
if (status.getReblog() != null)
|
||||||
|
holder.status_toot_date.setText(Helper.dateDiff(context, status.getReblog().getCreated_at()));
|
||||||
|
else
|
||||||
holder.status_toot_date.setText(Helper.dateDiff(context, status.getCreated_at()));
|
holder.status_toot_date.setText(Helper.dateDiff(context, status.getCreated_at()));
|
||||||
Helper.absoluteDateTimeReveal(context, holder.status_toot_date, status.getCreated_at());
|
Helper.absoluteDateTimeReveal(context, holder.status_toot_date, status.getCreated_at());
|
||||||
}
|
}
|
||||||
|
@ -4257,7 +4262,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
||||||
TextView status_content_translated;
|
TextView status_content_translated;
|
||||||
ConstraintLayout status_content_translated_container;
|
ConstraintLayout status_content_translated_container;
|
||||||
TextView status_account_username;
|
TextView status_account_username;
|
||||||
TextView status_account_displayname, status_account_displayname_owner;
|
TextView status_account_displayname, status_account_displayname_owner, status_boosted_date;
|
||||||
ImageView status_account_profile;
|
ImageView status_account_profile;
|
||||||
ImageView status_account_profile_boost_by;
|
ImageView status_account_profile_boost_by;
|
||||||
ConstraintLayout status_boosted_by_info;
|
ConstraintLayout status_boosted_by_info;
|
||||||
|
@ -4362,6 +4367,7 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
||||||
status_content_translated = itemView.findViewById(R.id.status_content_translated);
|
status_content_translated = itemView.findViewById(R.id.status_content_translated);
|
||||||
status_account_username = itemView.findViewById(R.id.status_account_username);
|
status_account_username = itemView.findViewById(R.id.status_account_username);
|
||||||
status_account_displayname = itemView.findViewById(R.id.status_account_displayname);
|
status_account_displayname = itemView.findViewById(R.id.status_account_displayname);
|
||||||
|
status_boosted_date = itemView.findViewById(R.id.status_boosted_date);
|
||||||
status_account_displayname_owner = itemView.findViewById(R.id.status_account_displayname_owner);
|
status_account_displayname_owner = itemView.findViewById(R.id.status_account_displayname_owner);
|
||||||
status_account_profile = itemView.findViewById(R.id.status_account_profile);
|
status_account_profile = itemView.findViewById(R.id.status_account_profile);
|
||||||
status_account_profile_boost_by = itemView.findViewById(R.id.status_account_profile_boost_by);
|
status_account_profile_boost_by = itemView.findViewById(R.id.status_account_profile_boost_by);
|
||||||
|
|
|
@ -99,10 +99,20 @@
|
||||||
android:maxLines="1"
|
android:maxLines="1"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
app:layout_constraintBottom_toBottomOf="@id/status_account_profile_boost_by"
|
app:layout_constraintBottom_toBottomOf="@id/status_account_profile_boost_by"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toStartOf="@id/status_boosted_date"
|
||||||
app:layout_constraintStart_toEndOf="@id/status_account_profile_boost_by"
|
app:layout_constraintStart_toEndOf="@id/status_account_profile_boost_by"
|
||||||
app:layout_constraintTop_toTopOf="@id/status_account_profile_boost_by" />
|
app:layout_constraintTop_toTopOf="@id/status_account_profile_boost_by" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:id="@+id/status_boosted_date"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_margin="5dp"
|
||||||
|
android:textSize="12sp"
|
||||||
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
|
|
||||||
<androidx.constraintlayout.widget.Guideline
|
<androidx.constraintlayout.widget.Guideline
|
||||||
|
|
|
@ -100,15 +100,16 @@
|
||||||
android:ellipsize="end"
|
android:ellipsize="end"
|
||||||
android:textStyle="bold"
|
android:textStyle="bold"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toStartOf="@id/status_boosted_time"
|
app:layout_constraintEnd_toStartOf="@id/status_boosted_date"
|
||||||
app:layout_constraintStart_toEndOf="@id/status_account_profile_boost_by"
|
app:layout_constraintStart_toEndOf="@id/status_account_profile_boost_by"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/status_boosted_time"
|
android:id="@+id/status_boosted_date"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_margin="5dp"
|
android:layout_margin="5dp"
|
||||||
|
android:textSize="12sp"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
Loading…
Reference in New Issue