From f0c324563901ac8b365c077f8a441eae7edf2786 Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Fri, 15 May 2020 13:58:51 -0400 Subject: [PATCH] Fix jank on conversation screen Onboarding should only appear if needed Test: manual Fixes: 156756305 Change-Id: I663677772806db9c80979cdac103c9fa657ee7e2 --- res/layout/conversation_onboarding.xml | 2 ++ .../app/NoConversationsPreferenceController.java | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/res/layout/conversation_onboarding.xml b/res/layout/conversation_onboarding.xml index bc180947831..5de21666285 100644 --- a/res/layout/conversation_onboarding.xml +++ b/res/layout/conversation_onboarding.xml @@ -15,10 +15,12 @@ --> () { @Override @@ -69,6 +71,8 @@ public class NoConversationsPreferenceController extends ConversationListPrefere if (mContext == null) { return; } + pref.findViewById(R.id.onboarding).setVisibility(mConversations.size() == 0 + ? View.VISIBLE : View.GONE); preference.setVisible(mConversations.size() == 0); } }.execute();