Skip to content
  • Térence Clastres's avatar
    StoragePreference: Use findViewbyId() instead of trying to bind · d914c876
    Térence Clastres authored
    Since commit f3ada973, the app crashes with a ClassCastException when going into the "expose filesystem" menu.
    
    This is because view binding checks if the root view is the one it expects but the one passed here isn't directly the checkbox layout but instead the whole StoragePreference layout.
    
    Because there is one view to bind, view binding here doesn't make much sense so replace it with a findViewbyId().
    Also  add viewBindingIgnore="true" to the view so its binding class is
    not generated.
    d914c876