mattlogan / Pancakes

A View-based navigation stack for Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make push/pop methods return Views

mattlogan opened this issue · comments

Returning the provided layout id is probably useless, especially for push.

If we return a View from the push methods, we can use that reference to initialize the next View with any data -- for example, a master-detail flow where the master View provides the detail View with data.

I can't think of a good use case for pop, but it's probably best to keep it consistent with push.