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

Commit 6a549b56 authored by Zhen Zhang's avatar Zhen Zhang
Browse files

Fix bug: Some targets will have wrong sub-label

When bind sub-label to view, we shouldn't check empty. Otherwise the
view cannot be clean up when recycled.

Bug: 143719968
Test: ResolverActivityTest, ChooserActivityTest
Change-Id: Ic22af8369246f73039c4add4c4168949410f0517
parent d1956631
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -630,8 +630,7 @@ public class ResolverListAdapter extends BaseAdapter {
                subLabel = null;
            }

            if (!TextUtils.equals(text2.getText(), subLabel)
                    && !TextUtils.isEmpty(subLabel)) {
            if (!TextUtils.equals(text2.getText(), subLabel)) {
                text2.setVisibility(View.VISIBLE);
                text2.setText(subLabel);
            }