mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-20 11:18:21 +00:00
Merge "Turn off filter ui if flag is off" into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
4835519ccb
@@ -28,12 +28,14 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
<!-- Filtering affects only alpha instead of the visibility since visibility can be altered
|
||||
separately through RecentsView#resetFromSplitSelectionState() -->
|
||||
<ImageView
|
||||
android:id="@+id/show_windows"
|
||||
android:layout_height="@dimen/recents_filter_icon_size"
|
||||
android:layout_width="@dimen/recents_filter_icon_size"
|
||||
android:layout_gravity="end"
|
||||
android:visibility="gone"
|
||||
android:alpha="0"
|
||||
android:tint="@color/recents_filter_icon"
|
||||
android:contentDescription="@string/recents_filter_icon_desc"
|
||||
android:importantForAccessibility="no"
|
||||
|
||||
@@ -38,23 +38,27 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
<!-- Filtering affects only alpha instead of the visibility since visibility can be altered
|
||||
separately through RecentsView#resetFromSplitSelectionState() -->
|
||||
<ImageView
|
||||
android:id="@+id/show_windows"
|
||||
android:layout_height="@dimen/recents_filter_icon_size"
|
||||
android:layout_width="@dimen/recents_filter_icon_size"
|
||||
android:layout_gravity="start"
|
||||
android:visibility="gone"
|
||||
android:alpha="0"
|
||||
android:tint="@color/recents_filter_icon"
|
||||
android:contentDescription="@string/recents_filter_icon_desc"
|
||||
android:importantForAccessibility="no"
|
||||
android:src="@drawable/ic_select_windows" />
|
||||
|
||||
<!-- Filtering affects only alpha instead of the visibility since visibility can be altered
|
||||
separately through RecentsView#resetFromSplitSelectionState() -->
|
||||
<ImageView
|
||||
android:id="@+id/show_windows_right"
|
||||
android:layout_height="@dimen/recents_filter_icon_size"
|
||||
android:layout_width="@dimen/recents_filter_icon_size"
|
||||
android:layout_gravity="end"
|
||||
android:visibility="gone"
|
||||
android:alpha="0"
|
||||
android:tint="@color/recents_filter_icon"
|
||||
android:contentDescription="@string/recents_filter_icon_desc"
|
||||
android:importantForAccessibility="no"
|
||||
|
||||
@@ -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