Don't reload blog data when configuration changes

This commit is contained in:
Torsten Grote
2021-03-17 10:37:26 -03:00
parent 726ebcea3f
commit e97478a21a

View File

@@ -112,7 +112,9 @@ class BlogViewModel extends BaseViewModel {
/**
* Set this before calling any other methods.
*/
@UiThread
public void setGroupId(GroupId groupId) {
if (this.groupId == groupId) return; // configuration change
this.groupId = groupId;
loadBlog(groupId);
loadBlogPosts(groupId);