From 739912fd602a9bda31be337cca0a1a7c651b5dd6 Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 15 Dec 2023 13:54:39 +0100 Subject: [PATCH] clean code --- .../mastodon/ui/drawer/ComposeAdapter.java | 20 ++++++------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java index 5c350b3a..be09cc97 100644 --- a/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java +++ b/app/src/main/java/app/fedilab/android/mastodon/ui/drawer/ComposeAdapter.java @@ -203,7 +203,7 @@ public class ComposeAdapter extends RecyclerView.Adapter 300; case 1 -> 1800; case 2 -> 3600; @@ -2039,7 +2033,6 @@ public class ComposeAdapter extends RecyclerView.Adapter 604800; default -> 864000; }; - statusDraft.poll.expire_in = expire; if (promptDraftListener != null) { promptDraftListener.promptDraft(); } @@ -2048,7 +2041,7 @@ public class ComposeAdapter extends RecyclerView.Adapter options = new ArrayList<>(); @@ -2080,7 +2073,6 @@ public class ComposeAdapter extends RecyclerView.Adapter { - holder.binding.content.getText().insert(holder.binding.content.getSelectionStart(), " :" + emojis.get(instance).get(position).shortcode + ": "); + holder.binding.content.getText().insert(holder.binding.content.getSelectionStart(), " :" + Objects.requireNonNull(emojis.get(instance)).get(position).shortcode + ": "); alertDialogEmoji.dismiss(); }); gridView.setPadding(paddingDp, paddingDp, paddingDp, paddingDp);