mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 09:49:21 +02:00
rename variables to "bookmark" instead "stared"
This commit is contained in:
parent
a81cdb79ad
commit
95fbe25b0a
2 changed files with 6 additions and 6 deletions
|
@ -20,7 +20,7 @@ import org.thoughtcrime.securesms.util.DateUtils;
|
||||||
public class ConversationItemFooter extends LinearLayout {
|
public class ConversationItemFooter extends LinearLayout {
|
||||||
|
|
||||||
private TextView dateView;
|
private TextView dateView;
|
||||||
private ImageView staredIndicatorView;
|
private ImageView bookmarkIndicatorView;
|
||||||
private ImageView secureIndicatorView;
|
private ImageView secureIndicatorView;
|
||||||
private ImageView locationIndicatorView;
|
private ImageView locationIndicatorView;
|
||||||
private DeliveryStatusView deliveryStatusView;
|
private DeliveryStatusView deliveryStatusView;
|
||||||
|
@ -45,7 +45,7 @@ public class ConversationItemFooter extends LinearLayout {
|
||||||
inflate(getContext(), R.layout.conversation_item_footer, this);
|
inflate(getContext(), R.layout.conversation_item_footer, this);
|
||||||
|
|
||||||
dateView = findViewById(R.id.footer_date);
|
dateView = findViewById(R.id.footer_date);
|
||||||
staredIndicatorView = findViewById(R.id.footer_stared_indicator);
|
bookmarkIndicatorView = findViewById(R.id.footer_bookmark_indicator);
|
||||||
secureIndicatorView = findViewById(R.id.footer_secure_indicator);
|
secureIndicatorView = findViewById(R.id.footer_secure_indicator);
|
||||||
locationIndicatorView = findViewById(R.id.footer_location_indicator);
|
locationIndicatorView = findViewById(R.id.footer_location_indicator);
|
||||||
deliveryStatusView = new DeliveryStatusView(findViewById(R.id.delivery_indicator));
|
deliveryStatusView = new DeliveryStatusView(findViewById(R.id.delivery_indicator));
|
||||||
|
@ -60,8 +60,8 @@ public class ConversationItemFooter extends LinearLayout {
|
||||||
|
|
||||||
public void setMessageRecord(@NonNull DcMsg messageRecord) {
|
public void setMessageRecord(@NonNull DcMsg messageRecord) {
|
||||||
presentDate(messageRecord);
|
presentDate(messageRecord);
|
||||||
boolean stared = messageRecord.getOriginalMsgId() != 0 || messageRecord.getSavedMsgId() != 0;
|
boolean bookmark = messageRecord.getOriginalMsgId() != 0 || messageRecord.getSavedMsgId() != 0;
|
||||||
staredIndicatorView.setVisibility(stared ? View.VISIBLE : View.GONE);
|
bookmarkIndicatorView.setVisibility(bookmark ? View.VISIBLE : View.GONE);
|
||||||
secureIndicatorView.setVisibility(messageRecord.isSecure() ? View.VISIBLE : View.GONE);
|
secureIndicatorView.setVisibility(messageRecord.isSecure() ? View.VISIBLE : View.GONE);
|
||||||
locationIndicatorView.setVisibility(messageRecord.hasLocation() ? View.VISIBLE : View.GONE);
|
locationIndicatorView.setVisibility(messageRecord.hasLocation() ? View.VISIBLE : View.GONE);
|
||||||
presentDeliveryStatus(messageRecord);
|
presentDeliveryStatus(messageRecord);
|
||||||
|
@ -69,7 +69,7 @@ public class ConversationItemFooter extends LinearLayout {
|
||||||
|
|
||||||
private void setTextColor(int color) {
|
private void setTextColor(int color) {
|
||||||
dateView.setTextColor(color);
|
dateView.setTextColor(color);
|
||||||
staredIndicatorView.setColorFilter(color);
|
bookmarkIndicatorView.setColorFilter(color);
|
||||||
secureIndicatorView.setColorFilter(color);
|
secureIndicatorView.setColorFilter(color);
|
||||||
locationIndicatorView.setColorFilter(color);
|
locationIndicatorView.setColorFilter(color);
|
||||||
deliveryStatusView.setTint(color);
|
deliveryStatusView.setTint(color);
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
tools:parentTag="org.thoughtcrime.securesms.components.ConversationItemFooter">
|
tools:parentTag="org.thoughtcrime.securesms.components.ConversationItemFooter">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/footer_stared_indicator"
|
android:id="@+id/footer_bookmark_indicator"
|
||||||
android:layout_width="12sp"
|
android:layout_width="12sp"
|
||||||
android:layout_height="11sp"
|
android:layout_height="11sp"
|
||||||
android:src="@drawable/baseline_bookmark_24"
|
android:src="@drawable/baseline_bookmark_24"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue