diff options
author | Alex Ning <chineseperson5@gmail.com> | 2021-01-18 14:35:57 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2021-01-18 14:35:57 +0000 |
commit | f13d4576e1330f69c868cd0b3d4cf605801edf94 (patch) | |
tree | 61585d1901aefd41bf1e009c3e3cf075a4dc8571 /app/src/main/java | |
parent | d2749d15d5009dfca3bbbdcf40c3512f1ee792e4 (diff) | |
download | infinity-for-reddit-f13d4576e1330f69c868cd0b3d4cf605801edf94.tar infinity-for-reddit-f13d4576e1330f69c868cd0b3d4cf605801edf94.tar.gz infinity-for-reddit-f13d4576e1330f69c868cd0b3d4cf605801edf94.tar.bz2 infinity-for-reddit-f13d4576e1330f69c868cd0b3d4cf605801edf94.tar.lz infinity-for-reddit-f13d4576e1330f69c868cd0b3d4cf605801edf94.tar.xz infinity-for-reddit-f13d4576e1330f69c868cd0b3d4cf605801edf94.tar.zst infinity-for-reddit-f13d4576e1330f69c868cd0b3d4cf605801edf94.zip |
Minor UI tweaks for dialog_insert_link.
Diffstat (limited to '')
-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); |