Magisk/app/src/main/java/com/topjohnwu/magisk
RikkaW 0df891b336 Handle window insets with a new way
For example, switching pages in home should only have scale and alpha animations, but a "translate y" animation shows. This is because Data Binding is triggered later (like "in the next frame"), causing the animation runs before view attribute changes.

This commit introduces WindowInsetsHelper class and use it to handle all window insets. With the help of LayoutInflaterFactory from the previous commit, we can control insets behavior by adding our attributes to the XML and anything is done by WindowInsetsHelper class.

As changes are highly coupling, this commit also contains new ItemDecoration for lists, replacing the random combination of padding and empty drawable. And "fixEdgeEffect" extension for RecyclerView, making edge effects respect padding.
2020-11-19 23:24:39 -08:00
..
arch Handle window insets with a new way 2020-11-19 23:24:39 -08:00
core Only use MediaStore APIs on Android 11+ 2020-11-13 02:53:30 -08:00
data Fix network 2020-10-20 23:56:21 -07:00
databinding Silence some warnings 2020-10-11 05:47:47 -07:00
di Update DoH implementation 2020-10-11 15:19:19 -07:00
events Tapjacking protection 2020-10-22 02:40:47 -07:00
ktx Handle window insets with a new way 2020-11-19 23:24:39 -08:00
ui Handle window insets with a new way 2020-11-19 23:24:39 -08:00
utils Silence kotlin warnings 2020-10-17 05:57:35 -07:00
view Significantly simplify MagiskDialog layout 2020-11-19 23:21:36 -08:00