GithubHelp home page GithubHelp logo

Error using hilt about sheets HOT 4 CLOSED

maxkeppeler avatar maxkeppeler commented on August 26, 2024
Error using hilt

from sheets.

Comments (4)

maxkeppeler avatar maxkeppeler commented on August 26, 2024 1

Right now it gets the fragment manager of a FragmentActivity, AppCompatActivity and Fragment. AppCompatActivity is not added. If you only build(requireContext())and then use the BottomSheetDialogFragment method show(fragmentManager), then it works, or? But then I wonder why it works without Hilt - I didn't have time to learn Hilt yet and therefore can't tell you anything. Can I checkout your code or could you build a small sample with hilt and this library?

from sheets.

puntogris avatar puntogris commented on August 26, 2024

I tried it like you suggested and it works now, thanks a lot!

from sheets.

maxkeppeler avatar maxkeppeler commented on August 26, 2024

You are welcome! Will think about adding it through just the context with the default show method.

from sheets.

maxkeppeler avatar maxkeppeler commented on August 26, 2024

I added the preference library, and added PreferenceFragmentCompat so it can take the fragment manager directly through the context, which is used for the custom show + build method. Should work with the next version too then.

from sheets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.