square / mortar

A simple library that makes it easy to pair thin views with dedicated controllers, isolated from most of the vagaries of the Activity life cycle.
Apache License 2.0
2.16k stars 156 forks source link

fix scope name collision problem #161

Closed hijamoya closed 9 years ago

hijamoya commented 9 years ago

Issue #149 is due to use flow to set multiple FriendListScreens. But each FriendListScreen has the same scope name, so the scope might be destroyed after you enter next FriendListScreen. This pull request use the object instance name as scope name rather than use class name should fix the problem.