issues
search
jasonscott5391
/
udacity-android-developer-nanodegree
0
stars
0
forks
source link
Current Position in Grid Not Persisted
#31
Closed
jasonscott5391
closed
6 years ago
jasonscott5391
commented
6 years ago
MainActivity is being re-created (onCreate method invoked) each time returning from DetailActivity.
This is causing re-instantiation of ViewModel leading to the querying of data.
The observer then resets the member variable tracking current location in grid.
Set MainActivity
launchMode
to
singleTop
.