Comments (2)
In the presenters onCreate is used to register them to the otto bus and onStop to unregister.
That's fine, but calling *Presenter.onCreate in an Activities onCreate()
method to register can lead into an exception when you unregister your *Presenter in the onStop()
method.
This is the case if the Activity goes to the background(onStop is called) comes back to the foreground and then goes again back into the background(onStop is called a second time as well as unregister)
So it would be better to call register in onStart()
from material-movies.
@EarlOfEgo you are right, I just merged, thanks!
from material-movies.
Related Issues (20)
- How will we handle retrofit errors.
- having trouble with android fragments
- Failed to resolve: com.jakewharton:butterknife:6.0.0 HOT 1
- Adding a DB to cache movies HOT 1
- No nav drawer
- Toolbar
- Crashes when clicking Furious 7
- Crashes when clicking one movie
- import com.hackvg.android.di.components.DaggerAppComponent HOT 2
- License HOT 4
- Test Issue
- Crashes when rotating HOT 1
- Callback replacement Rxjava
- about images
- Tutorial on how to "install" this and using it with a database
- Error:Execution failed for task ':app:compileDebugJavaWithJavac'. > java.lang.NoSuchFieldError: MAP HOT 1
- Deprecation
- Bus usage HOT 5
- MoviesPresenter class missing? HOT 1
- Issue with build tools 21.1.2 and Gradle plugin version 1.1.0-rc1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from material-movies.