mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Disabling default focus from icons as we use an animated focus indicator
Change-Id: I9d3f1b5f5710ff8931f02f1a3a41e4986b4e0f9c
This commit is contained in:
@@ -236,4 +236,19 @@ public abstract class FocusIndicatorHelper implements
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Simple subclass which assumes that the target view is a child of the container.
|
||||
*/
|
||||
public static class SimpleFocusIndicatorHelper extends FocusIndicatorHelper {
|
||||
|
||||
public SimpleFocusIndicatorHelper(View container) {
|
||||
super(container);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void viewToRect(View v, Rect outRect) {
|
||||
outRect.set(v.getLeft(), v.getTop(), v.getRight(), v.getBottom());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user