Should we use in activity/fragment RealmResult query listener or we can do this using adapter. My case is to update internal counters when item was added to realm.
Asked
Active
Viewed 78 times
0
-
1Why not update the internal counters where you actually do the write (in the transaction)? – EpicPandaForce Mar 16 '18 at 00:13
-
At this moment I'm doing things as you said. Thank you! But i wonder if it is possible to update from adapter. – demogorgorn Mar 16 '18 at 20:22
-
1I would advise against it. – EpicPandaForce Mar 16 '18 at 23:18
-
EpicPandaForce I undrestand. Thank you! – demogorgorn Mar 19 '18 at 07:58