mozilla / webmaker-android

Webmaker for Android
https://play.google.com/store/apps/details?id=org.mozilla.webmaker
Mozilla Public License 2.0
167 stars 104 forks source link

Auto refresh Make view on project exit #2066

Closed xmatthewx closed 9 years ago

xmatthewx commented 9 years ago

When I create a new project, I expect to see that project in Make when I exit the project. Currently, I need to manually refresh.

xmatthewx commented 9 years ago

This also impacts remixes as noted by @gvn in https://github.com/mozilla/webmaker-android/pull/2141#issuecomment-110863555. A user will likely assume that their remix failed.

Refresh would also be helpful for seeing updates to thumbnails and titles. Titles in particular feel like they failed to save.

Seems important for v1.

gvn commented 9 years ago

Yeah, basically I think Make needs to always pull fresh data when it is focused. I'm not entirely sure how to get that to happen since it isn't being destroyed and rebuilt. Do we have some kind of focus event from Android that we can tap into? @k88hudson @thisandagain

thisandagain commented 9 years ago

Yup. We get Activity lifecycle events from the MainActivity. I can take this one.

gvn commented 9 years ago

:+1: