Fix translator button issue
This commit is contained in:
parent
80b59af041
commit
67213a6211
|
@ -910,7 +910,14 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
|
|||
} else {
|
||||
holder.status_translate.setVisibility(View.GONE);
|
||||
}
|
||||
}else {
|
||||
}else if( status.getReblog() != null && status.getReblog().getSpoiler_text() != null && status.getReblog().getSpoiler_text().length() > 0) {
|
||||
if (status.isSpoilerShown() || getItemViewType(position) == FOCUSED_STATUS) {
|
||||
holder.status_translate.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
holder.status_translate.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
else {
|
||||
holder.status_translate.setVisibility(View.VISIBLE);
|
||||
}
|
||||
}else {
|
||||
|
|
|
@ -226,7 +226,6 @@
|
|||
android:layout_width="60dp"
|
||||
android:layout_height="wrap_content">
|
||||
<ImageView
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:id="@+id/new_element"
|
||||
android:visibility="gone"
|
||||
android:src="@drawable/ic_fiber_new"
|
||||
|
@ -234,14 +233,11 @@
|
|||
android:layout_height="wrap_content"
|
||||
tools:ignore="ContentDescription" />
|
||||
<ImageButton
|
||||
|
||||
android:id="@+id/status_translate"
|
||||
android:gravity="center"
|
||||
style="?attr/borderless"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/ic_translate"
|
||||
android:layout_gravity="center_horizontal"
|
||||
style="?attr/borderless"
|
||||
/>
|
||||
<ImageButton
|
||||
|
||||
|
@ -254,7 +250,6 @@
|
|||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/ic_bookmark_border"
|
||||
android:layout_marginTop="5dp"
|
||||
android:layout_gravity="center_horizontal"
|
||||
/>
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
|
|
Loading…
Reference in New Issue