mirror of
https://codeberg.org/gitnex/GitNex.git
synced 2024-12-16 15:48:13 +08:00
Fix attachments for comments and improve comment UI (#1358)
As title Reviewed-on: https://codeberg.org/gitnex/GitNex/pulls/1358 Co-authored-by: M M Arif <mmarif@swatian.com> Co-committed-by: M M Arif <mmarif@swatian.com>
This commit is contained in:
parent
143677eb42
commit
f7c68a80b4
@ -260,10 +260,14 @@ public class IssueCommentsAdapter extends RecyclerView.Adapter<RecyclerView.View
|
|||||||
|
|
||||||
String token = ((BaseActivity) context).getAccount().getAccount().getToken();
|
String token = ((BaseActivity) context).getAccount().getAccount().getToken();
|
||||||
|
|
||||||
if (issueComment != null) {
|
|
||||||
new Handler()
|
new Handler()
|
||||||
.postDelayed(() -> getAttachments(issueComment.getId(), view, token), 250);
|
.postDelayed(
|
||||||
|
() -> {
|
||||||
|
if (issueComment != null) {
|
||||||
|
getAttachments(issueComment.getId(), view, token);
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
250);
|
||||||
|
|
||||||
menu.setOnClickListener(
|
menu.setOnClickListener(
|
||||||
v -> {
|
v -> {
|
||||||
|
@ -406,22 +406,22 @@
|
|||||||
android:paddingTop="@dimen/dimen8dp"
|
android:paddingTop="@dimen/dimen8dp"
|
||||||
android:paddingBottom="@dimen/dimen8dp"
|
android:paddingBottom="@dimen/dimen8dp"
|
||||||
android:textColor="?attr/inputTextColor"
|
android:textColor="?attr/inputTextColor"
|
||||||
android:layout_marginEnd="@dimen/dimen12dp"
|
android:layout_marginEnd="@dimen/dimen8dp"
|
||||||
android:textSize="@dimen/dimen14sp" />
|
android:textSize="@dimen/dimen16sp" />
|
||||||
|
|
||||||
<com.google.android.material.card.MaterialCardView
|
<com.google.android.material.card.MaterialCardView
|
||||||
style="?attr/materialCardViewFilledStyle"
|
style="?attr/materialCardViewFilledStyle"
|
||||||
android:id="@+id/send_button"
|
android:id="@+id/send_button"
|
||||||
android:layout_width="@dimen/dimen36dp"
|
android:layout_width="@dimen/dimen38dp"
|
||||||
android:layout_height="@dimen/dimen36dp"
|
android:layout_height="@dimen/dimen38dp"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
android:backgroundTint="?attr/fabColor"
|
android:backgroundTint="?attr/fabColor"
|
||||||
app:cardCornerRadius="@dimen/dimen36dp">
|
app:cardCornerRadius="@dimen/dimen36dp">
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/send"
|
android:id="@+id/send"
|
||||||
android:layout_width="@dimen/dimen24dp"
|
android:layout_width="@dimen/dimen26dp"
|
||||||
android:layout_height="@dimen/dimen24dp"
|
android:layout_height="@dimen/dimen26dp"
|
||||||
android:layout_gravity="center_vertical|center_horizontal"
|
android:layout_gravity="center_vertical|center_horizontal"
|
||||||
android:contentDescription="@string/generalImgContentText"
|
android:contentDescription="@string/generalImgContentText"
|
||||||
app:tint="?attr/materialCardBackgroundColor"
|
app:tint="?attr/materialCardBackgroundColor"
|
||||||
|
@ -17,6 +17,7 @@
|
|||||||
<dimen name="dimen28dp">28dp</dimen>
|
<dimen name="dimen28dp">28dp</dimen>
|
||||||
<dimen name="dimen32dp">32dp</dimen>
|
<dimen name="dimen32dp">32dp</dimen>
|
||||||
<dimen name="dimen36dp">36dp</dimen>
|
<dimen name="dimen36dp">36dp</dimen>
|
||||||
|
<dimen name="dimen38dp">38dp</dimen>
|
||||||
<dimen name="dimen40dp">40dp</dimen>
|
<dimen name="dimen40dp">40dp</dimen>
|
||||||
<dimen name="dimen44dp">44dp</dimen>
|
<dimen name="dimen44dp">44dp</dimen>
|
||||||
<dimen name="dimen48dp">48dp</dimen>
|
<dimen name="dimen48dp">48dp</dimen>
|
||||||
|
Loading…
Reference in New Issue
Block a user