infinitered / bluepotion

Like RedPotion, but for Android
MIT License
74 stars 18 forks source link

Added ability to close to previous screen #13

Closed jamonholmgren closed 9 years ago

jamonholmgren commented 9 years ago

So, @GantMan and @darinwilson and @leonskim and I worked on this one for quite a while. The upshot is that you need to provide a custom activity if you want to use close to_screen.

class MyActivity < PMSingleFragmentActivity
end

# ...
open MyScreen, activity: MyActivity

# ...
close to_screen: MyScreen, activity: MyActivity

If you don't provide an activity both when you open the screen and when you close to it, it won't work.

GantMan commented 9 years ago

Dude you got it!? Awesome!

jamonholmgren commented 9 years ago

Yeah, it works!

darinwilson commented 9 years ago

Nice work!

jamonholmgren commented 9 years ago

Mergeable?