mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Fix bug where Cancel/Remove drop target text was not being updated.
Bug: 72644671 Change-Id: I8a042230b1a61b6ccd8a9c53bc09177f065351b0
This commit is contained in:
@@ -344,9 +344,10 @@ public abstract class ButtonDropTarget extends TextView
|
||||
}
|
||||
|
||||
public void setTextVisible(boolean isVisible) {
|
||||
if (mTextVisible != isVisible) {
|
||||
CharSequence newText = isVisible ? mText : "";
|
||||
if (mTextVisible != isVisible || !TextUtils.equals(newText, getText())) {
|
||||
mTextVisible = isVisible;
|
||||
setText(isVisible ? mText : "");
|
||||
setText(newText);
|
||||
if (mTextVisible) {
|
||||
setCompoundDrawablesRelativeWithIntrinsicBounds(mDrawable, null, null, null);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user