diff options
Diffstat (limited to 'app/src/main/java/ml/docilealligator')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/adapters/MarkdownBottomBarRecyclerViewAdapter.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/MarkdownBottomBarRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/MarkdownBottomBarRecyclerViewAdapter.java index 8145e8a0..b7057106 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/MarkdownBottomBarRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/MarkdownBottomBarRecyclerViewAdapter.java @@ -12,9 +12,10 @@ import androidx.recyclerview.widget.RecyclerView; import com.google.android.material.dialog.MaterialAlertDialogBuilder; import com.google.android.material.slider.Slider; +import com.google.android.material.textfield.TextInputEditText; -import ml.docilealligator.infinityforreddit.customtheme.CustomThemeWrapper; import ml.docilealligator.infinityforreddit.R; +import ml.docilealligator.infinityforreddit.customtheme.CustomThemeWrapper; public class MarkdownBottomBarRecyclerViewAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { @@ -125,8 +126,8 @@ public class MarkdownBottomBarRecyclerViewAdapter extends RecyclerView.Adapter<R } case MarkdownBottomBarRecyclerViewAdapter.LINK: { View dialogView = activity.getLayoutInflater().inflate(R.layout.dialog_insert_link, null); - EditText textEditText = dialogView.findViewById(R.id.edit_text_insert_link_dialog); - EditText linkEditText = dialogView.findViewById(R.id.edit_link_insert_link_dialog); + TextInputEditText textEditText = dialogView.findViewById(R.id.edit_text_insert_link_dialog); + TextInputEditText linkEditText = dialogView.findViewById(R.id.edit_link_insert_link_dialog); int start = Math.max(commentEditText.getSelectionStart(), 0); int end = Math.max(commentEditText.getSelectionEnd(), 0); |