Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58cf5762 authored by Gilles Debunne's avatar Gilles Debunne Committed by Android (Google) Code Review
Browse files

Merge "UI changes in suggestion menu"

parents 0e71d19a 1daba187
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
@@ -2282,14 +2282,11 @@ public class Editor {
                final SuggestionInfo suggestionInfo = mSuggestionInfos[position];
                textView.setText(suggestionInfo.text);

                if (suggestionInfo.suggestionIndex == ADD_TO_DICTIONARY) {
                    textView.setCompoundDrawablesWithIntrinsicBounds(
                            com.android.internal.R.drawable.ic_suggestions_add, 0, 0, 0);
                } else if (suggestionInfo.suggestionIndex == DELETE_TEXT) {
                    textView.setCompoundDrawablesWithIntrinsicBounds(
                            com.android.internal.R.drawable.ic_suggestions_delete, 0, 0, 0);
                if (suggestionInfo.suggestionIndex == ADD_TO_DICTIONARY ||
                suggestionInfo.suggestionIndex == DELETE_TEXT) {
                    textView.setBackgroundColor(Color.TRANSPARENT);
                } else {
                    textView.setCompoundDrawables(null, null, null, null);
                    textView.setBackgroundColor(Color.WHITE);
                }

                return textView;
−373 B
Loading image diff...
−580 B
Loading image diff...
−359 B
Loading image diff...
−460 B
Loading image diff...
Loading