Hide recent threads when thread feature disabled

This commit is contained in:
Arne 2024-03-05 09:22:02 +01:00
parent ed870874b4
commit 30d58f6a6b
2 changed files with 7 additions and 2 deletions

View file

@ -868,7 +868,10 @@ public class ConferenceDetailsActivity extends XmppActivity implements OnConvers
final ThreadAdapter threads = new ThreadAdapter();
threads.addAll(recentThreads);
this.binding.recentThreads.setAdapter(threads);
this.binding.recentThreadsWrapper.setVisibility(View.VISIBLE);
if (xmppConnectionService.getBooleanPreference("show_thread_feature", R.bool.show_thread_feature)) {
this.binding.recentThreadsWrapper.setVisibility(View.VISIBLE);
}
Util.justifyListViewHeightBasedOnChildren(binding.recentThreads);
}

View file

@ -931,7 +931,9 @@ public class ContactDetailsActivity extends OmemoActivity implements OnAccountUp
final ContactDetailsActivity.ThreadAdapter threads = new ContactDetailsActivity.ThreadAdapter();
threads.addAll(recentThreads);
this.binding.recentThreads.setAdapter(threads);
this.binding.recentThreadsWrapper.setVisibility(View.VISIBLE);
if (xmppConnectionService.getBooleanPreference("show_thread_feature", R.bool.show_thread_feature)) {
this.binding.recentThreadsWrapper.setVisibility(View.VISIBLE);
}
Util.justifyListViewHeightBasedOnChildren(binding.recentThreads);
}