1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-01 01:06:11 +00:00

Fixed ChipDrawable memory leak

This commit is contained in:
M66B 2024-07-07 08:12:07 +02:00
parent 7b7fc42fed
commit 2098bd8383

View file

@ -106,7 +106,7 @@ public class EditTextMultiAutoComplete extends AppCompatMultiAutoCompleteTextVie
dark = Helper.isDarkTheme(context);
colorAccent = Helper.resolveColor(context, androidx.appcompat.R.attr.colorAccent);
colorAccent = ColorUtils.setAlphaComponent(colorAccent, 5 * 255 / 100);
ctx = new ContextThemeWrapper(context, dark ? R.style.ChipDark : R.style.ChipLight);
ctx = new ContextThemeWrapper(context.getApplicationContext(), dark ? R.style.ChipDark : R.style.ChipLight);
addTextChangedListener(new TextWatcher() {
private Integer backspace = null;