~singpolyma/cheogram-android

78325b4d193c0cfff38a4700abe1025f47381fc5 — Stephen Paul Weber 1 year, 3 months ago ee5b337
If onboarding and only 1 conversation, that's where we want to be
1 files changed, 8 insertions(+), 0 deletions(-)

M src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java
M src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java => src/main/java/eu/siacs/conversations/ui/ConversationsOverviewFragment.java +8 -0
@@ 492,6 492,14 @@ public class ConversationsOverviewFragment extends XmppFragment {

		if (activity.xmppConnectionService != null && activity.xmppConnectionService.isOnboarding()) {
			binding.fab.setVisibility(View.GONE);

			if (this.conversations.size() == 1) {
				if (activity instanceof OnConversationSelected) {
					((OnConversationSelected) activity).onConversationSelected(this.conversations.get(0));
				} else {
					Log.w(ConversationsOverviewFragment.class.getCanonicalName(), "Activity does not implement OnConversationSelected");
				}
			}
		} else {
			binding.fab.setVisibility(View.VISIBLE);
		}