Verified
Status Update
Comments
dn...@google.com <dn...@google.com>
dn...@google.com <dn...@google.com> #2
+1
I am interested in this feature as well for Master/Detail.
I am interested in this feature as well for Master/Detail.
d4...@gmail.com <d4...@gmail.com> #3
Another use case is that if you have a full page spinner activity that loads data from the network.
Once the data is loaded the app navigates to a 2nd activity that presents the data.
We would like to be able to use the same ViewModel instance in both activities.
Once the data is loaded the app navigates to a 2nd activity that presents the data.
We would like to be able to use the same ViewModel instance in both activities.
dn...@google.com <dn...@google.com> #4
Adding a situation which I need this: I don't want the UI to wait for a network call. Showing a detail activity will need to get the detail data from the server.
So if I start the API call (which is of course done by the ViewModel) as soon as the user clicks the item, it is already fetching the data while transitioning to the second screen.
Then I don't have to block the starting of the detail activity or wait to trigger the API call until the detail activity is started
So if I start the API call (which is of course done by the ViewModel) as soon as the user clicks the item, it is already fetching the data while transitioning to the second screen.
Then I don't have to block the starting of the detail activity or wait to trigger the API call until the detail activity is started
dn...@google.com <dn...@google.com> #6
what is the status of this issue ??
d4...@gmail.com <d4...@gmail.com> #7
does any work has done regrading this ??
dn...@google.com <dn...@google.com> #8
we need fatures share the viewModel between activites to apply ViewModel with old project without restructure the app from zero
d4...@gmail.com <d4...@gmail.com> #9
Please add this feature, unfortunately this request has been ignored for 3 years
mi...@gmail.com <mi...@gmail.com> #11
Isn't it just good enough to create a singleton of the viewmodel? I do this using Koin
d4...@gmail.com <d4...@gmail.com> #12
Can't believe there is one piece of AD on #10 Floor....
dn...@google.com <dn...@google.com> #13
Reply to "Isn't it just good enough to create a singleton of the viewmodel? I do this using Koin":
herriojr commented on Jan 3, 2018
"My only possible issue with that approach is -> The ViewModel is expected to be cleared when onCleared() is called. Will onCleared() be called multiple times (answer: yes)? For example, if Activity A and B share a ViewModel and from Activity A, I start up Activity B, then close Activity B, onCleared() be called while Activity A still needs the ViewModel. I really feel this version of ViewModels wasn't designed to actually be used across multiple activities."
What is your comment about this cleaning issue?
herriojr commented on Jan 3, 2018
"My only possible issue with that approach is -> The ViewModel is expected to be cleared when onCleared() is called. Will onCleared() be called multiple times (answer: yes)? For example, if Activity A and B share a ViewModel and from Activity A, I start up Activity B, then close Activity B, onCleared() be called while Activity A still needs the ViewModel. I really feel this version of ViewModels wasn't designed to actually be used across multiple activities."
What is your comment about this cleaning issue?
oa...@gmail.com <oa...@gmail.com> #14
Any update on this ticket?
dn...@google.com <dn...@google.com>
rm...@mercuryintermedia.com <rm...@mercuryintermedia.com> #15
Any update ?
Description
`PackageManager.getInstalledApplications(0)` also returns an empty list.
`PackageManager.getApplicationInfo(<pkg>,0)` returns information.
Logcat shows no errors or stacktraces on the emulator.
Reproduced on:
- Xiaomi Mi A1 8.0.0
- Nexus 5X 8.0.0 (doesn't happen on 8.1.0)
- AOSP Emulator 8.0.0
Instant apps that cause this:
-
These two stale tickets likely describe the same issue:
I'm archiving additional details here: