sockeqwe / mosby

A Model-View-Presenter / Model-View-Intent library for modern Android apps
http://hannesdorfmann.com/mosby/
Apache License 2.0
5.49k stars 841 forks source link

How can I use it by extents Activity rather than AppCompatActivity? #313

Closed thothsun closed 6 years ago

thothsun commented 6 years ago

How can I user it by extents Activity rather than AppCompatActivity?

abyrnes commented 6 years ago

I'm not really sure why you'd want to, but to do so you'd manually have to copy MviActivity into your project and just replace the parent class with Activity

sockeqwe commented 6 years ago

Right, if you take a look at MviActivity source code you will see that it basically delegates all lifecycle events to a delegate. You have to do the same for your Activity bases class.