1. 20 Nov, 2020 4 commits
    • RikkaW's avatar
      Handle window insets with a new way · 0df891b3
      RikkaW authored
      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.
      0df891b3
    • RikkaW's avatar
      Introduce LayoutInflaterFactory · 385853a2
      RikkaW authored
      This add the ability touch layout XML instantiates process. And most importantly, we can access AttributeSet, making custom view attribute possible.
      
      Some other changes requires this.
      385853a2
    • RikkaW's avatar
      Significantly simplify MagiskDialog layout · fa3ef8a1
      RikkaW authored
      The goal of original implementation, wrap view again and again, seems to be use the shadow and customizable round corners from MaterialCardView. But this can be done with use MaterialShapeDrawable which used in MaterialCardView directly. This will significantly simplify the layout and MagiskDialog class.
      fa3ef8a1
    • RikkaW's avatar
      Implement Edge-to-edge with newer APIs · c93ada03
      RikkaW authored
      The implementation adds a "Base" family styles, making creating themes across multiple API versions more clearer and easier.
      c93ada03
  2. 15 Nov, 2020 1 commit
  3. 13 Nov, 2020 10 commits
  4. 11 Nov, 2020 1 commit
  5. 10 Nov, 2020 1 commit
  6. 08 Nov, 2020 3 commits
  7. 07 Nov, 2020 12 commits
  8. 04 Nov, 2020 3 commits
  9. 03 Nov, 2020 5 commits
    • topjohnwu's avatar
      Update resetprop help msg · f32e0af8
      topjohnwu authored
      f32e0af8
    • topjohnwu's avatar
      Templatize function callbacks · 4c94f90e
      topjohnwu authored
      4c94f90e
    • topjohnwu's avatar
      Don't use reserved symbols · ffb42246
      topjohnwu authored
      ffb42246
    • topjohnwu's avatar
      Mount proper system_root mirror in magiskd · 89fff483
      topjohnwu authored
      89fff483
    • topjohnwu's avatar
      Significantly broaden sepolicy.rule compatibility · 16e4c679
      topjohnwu authored
      Previously, Magisk uses persist or cache for storing modules' custom
      sepolicy rules. In this commit, we significantly broaden its
      compatibility and also prevent mounting errors.
      
      The persist partition is non-standard and also critical for Snapdragon
      devices, so we prefer not to use it by default.
      
      We will go through the following logic to find the best suitable
      non-volatile, writable location to store and load sepolicy.rule files:
      
      Unencrypted data -> FBE data unencrypted dir -> cache -> metadata -> persist
      
      This should cover almost all possible cases: very old devices have
      cache partitions; newer devices will use FBE; latest devices will use
      metadata FBE (which guarantees a metadata parition); and finally,
      all Snapdragon devices have the persist partition (as a last resort).
      
      Fix #3179
      16e4c679