mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Turn off filter ui if flag is off
Fix a bug in a condition determining when to show filter ui for a certain taskview, making sure that the ui is off when the feature flag for multi-instance is off. Test: reproduced the steps laid out in the bug Bug: 264218764 Change-Id: Ie745789ad834d56b79de47e5196737eb08b081fa
This commit is contained in:
@@ -561,10 +561,12 @@ public class TaskView extends FrameLayout implements Reusable {
|
||||
*/
|
||||
protected void updateFilterCallback(@NonNull View filterView,
|
||||
@Nullable View.OnClickListener callback) {
|
||||
// Filtering changes alpha instead of the visibility since visibility
|
||||
// can be altered separately through RecentsView#resetFromSplitSelectionState()
|
||||
if (callback == null) {
|
||||
filterView.setVisibility(GONE);
|
||||
filterView.setAlpha(0);
|
||||
} else {
|
||||
filterView.setVisibility(VISIBLE);
|
||||
filterView.setAlpha(1);
|
||||
}
|
||||
|
||||
filterView.setOnClickListener(callback);
|
||||
|
||||
Reference in New Issue
Block a user