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 {
|
} else {
|
||||||
holder.status_translate.setVisibility(View.GONE);
|
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);
|
holder.status_translate.setVisibility(View.VISIBLE);
|
||||||
}
|
}
|
||||||
}else {
|
}else {
|
||||||
|
|
|
@ -226,7 +226,6 @@
|
||||||
android:layout_width="60dp"
|
android:layout_width="60dp"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content">
|
||||||
<ImageView
|
<ImageView
|
||||||
android:layout_gravity="center_horizontal"
|
|
||||||
android:id="@+id/new_element"
|
android:id="@+id/new_element"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
android:src="@drawable/ic_fiber_new"
|
android:src="@drawable/ic_fiber_new"
|
||||||
|
@ -234,14 +233,11 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
tools:ignore="ContentDescription" />
|
tools:ignore="ContentDescription" />
|
||||||
<ImageButton
|
<ImageButton
|
||||||
|
|
||||||
android:id="@+id/status_translate"
|
android:id="@+id/status_translate"
|
||||||
android:gravity="center"
|
|
||||||
style="?attr/borderless"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:src="@drawable/ic_translate"
|
android:src="@drawable/ic_translate"
|
||||||
android:layout_gravity="center_horizontal"
|
style="?attr/borderless"
|
||||||
/>
|
/>
|
||||||
<ImageButton
|
<ImageButton
|
||||||
|
|
||||||
|
@ -254,7 +250,6 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:src="@drawable/ic_bookmark_border"
|
android:src="@drawable/ic_bookmark_border"
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="5dp"
|
||||||
android:layout_gravity="center_horizontal"
|
|
||||||
/>
|
/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
|
Loading…
Reference in New Issue