mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-29 00:14:12 +01:00
Hide recent threads when thread feature disabled
This commit is contained in:
parent
ed870874b4
commit
30d58f6a6b
2 changed files with 7 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue