Fix attachments for comments and improve comment UI (#1358) All checks were successful ci/woodpecker/push/locale Pipeline was successful ci/woodpecker/push/check Pipeline was successful ci/woodpecker/push/build Pipeline was successful ci/woodpecker/push/finish Pipeline was successful ci/woodpecker/cron/locale Pipeline was successful ci/woodpecker/cron/build Pipeline was successful ci/woodpecker/cron/check Pipeline was successful
All checks were successful
ci/woodpecker/push/locale Pipeline was successful
ci/woodpecker/push/check Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/finish Pipeline was successful
ci/woodpecker/cron/locale Pipeline was successful
ci/woodpecker/cron/build Pipeline was successful
ci/woodpecker/cron/check Pipeline was successful
As title Reviewed-on: #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
3 changed files with 15 additions and 10 deletions
| @ -260,10 +260,14 @@ public class IssueCommentsAdapter extends RecyclerView.Adapter<RecyclerView.View | |||
| ||||
String token = ((BaseActivity) context).getAccount().getAccount().getToken(); | ||||
| ||||
if (issueComment != null) { | ||||
new Handler() | ||||
.postDelayed(() -> getAttachments(issueComment.getId(), view, token), 250); | ||||
} | ||||
new Handler() | ||||
.postDelayed( | ||||
() -> { | ||||
if (issueComment != null) { | ||||
getAttachments(issueComment.getId(), view, token); | ||||
} | ||||
}, | ||||
250); | ||||
| ||||
menu.setOnClickListener( | ||||
v -> { | ||||
| |
| @ -406,22 +406,22 @@ | |||
android:paddingTop="@dimen/dimen8dp" | ||||
android:paddingBottom="@dimen/dimen8dp" | ||||
android:textColor="?attr/inputTextColor" | ||||
android:layout_marginEnd="@dimen/dimen12dp" | ||||
android:textSize="@dimen/dimen14sp" /> | ||||
android:layout_marginEnd="@dimen/dimen8dp" | ||||
android:textSize="@dimen/dimen16sp" /> | ||||
| ||||
<com.google.android.material.card.MaterialCardView | ||||
style="?attr/materialCardViewFilledStyle" | ||||
android:id="@+id/send_button" | ||||
android:layout_width="@dimen/dimen36dp" | ||||
android:layout_height="@dimen/dimen36dp" | ||||
android:layout_width="@dimen/dimen38dp" | ||||
android:layout_height="@dimen/dimen38dp" | ||||
android:layout_gravity="center_vertical" | ||||
android:backgroundTint="?attr/fabColor" | ||||
app:cardCornerRadius="@dimen/dimen36dp"> | ||||
| ||||
<ImageView | ||||
android:id="@+id/send" | ||||
android:layout_width="@dimen/dimen24dp" | ||||
android:layout_height="@dimen/dimen24dp" | ||||
android:layout_width="@dimen/dimen26dp" | ||||
android:layout_height="@dimen/dimen26dp" | ||||
android:layout_gravity="center_vertical|center_horizontal" | ||||
android:contentDescription="@string/generalImgContentText" | ||||
app:tint="?attr/materialCardBackgroundColor" | ||||
| |
| @ -17,6 +17,7 @@ | |||
<dimen name="dimen28dp">28dp</dimen> | ||||
<dimen name="dimen32dp">32dp</dimen> | ||||
<dimen name="dimen36dp">36dp</dimen> | ||||
<dimen name="dimen38dp">38dp</dimen> | ||||
<dimen name="dimen40dp">40dp</dimen> | ||||
<dimen name="dimen44dp">44dp</dimen> | ||||
<dimen name="dimen48dp">48dp</dimen> | ||||
| |
Loading…
Add table
Add a link
Reference in a new issue