diff options
Diffstat (limited to 'src/com/android/car/messenger/core/interfaces/DataModel.java')
-rw-r--r-- | src/com/android/car/messenger/core/interfaces/DataModel.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/car/messenger/core/interfaces/DataModel.java b/src/com/android/car/messenger/core/interfaces/DataModel.java index 911b2a0..a2bc91b 100644 --- a/src/com/android/car/messenger/core/interfaces/DataModel.java +++ b/src/com/android/car/messenger/core/interfaces/DataModel.java @@ -42,6 +42,12 @@ public interface DataModel { LiveData<Collection<UserAccount>> getAccounts(); /** + * Call this to reload user account live data. This is useful when resuming an activity, to + * ensure no account changes was missed. + */ + void refreshUserAccounts(); + + /** * Get collection of conversations for the given account. * * @param userAccount The account to which data is being queried. This could be the subscription |