mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 10:48:19 +00:00
Revert "Revert "Adding support for hiding widgets from the widget tray and reconfiguring widgets""
This reverts commit f502e5faec.
Reason for revert: Reverting post-build
Change-Id: I09eb292dbbbe37ffaf3abc477aa2ddb5700093b8
This commit is contained in:
@@ -108,6 +108,12 @@ public abstract class ButtonDropTarget extends TextView
|
||||
setContentDescription(mText);
|
||||
}
|
||||
|
||||
protected void updateText(int resId) {
|
||||
setText(resId);
|
||||
mText = getText();
|
||||
setContentDescription(mText);
|
||||
}
|
||||
|
||||
protected void setDrawable(int resId) {
|
||||
// We do not set the drawable in the xml as that inflates two drawables corresponding to
|
||||
// drawableLeft and drawableStart.
|
||||
@@ -236,9 +242,7 @@ public abstract class ButtonDropTarget extends TextView
|
||||
|
||||
protected abstract boolean supportsDrop(ItemInfo info);
|
||||
|
||||
public boolean supportsAccessibilityDrop(ItemInfo info) {
|
||||
return supportsDrop(info);
|
||||
}
|
||||
public abstract boolean supportsAccessibilityDrop(ItemInfo info, View view);
|
||||
|
||||
@Override
|
||||
public boolean isDropEnabled() {
|
||||
@@ -368,4 +372,6 @@ public abstract class ButtonDropTarget extends TextView
|
||||
TextUtils.TruncateAt.END);
|
||||
return !mText.equals(displayedText);
|
||||
}
|
||||
|
||||
public abstract int getControlTypeForLogging();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user