fix(onboarding-follow-suggestions): remove non-wanted code and fix a crash
This commit is contained in:
parent
e8b77d0dfa
commit
02eb178443
|
@ -38,7 +38,7 @@ public class OnboardingFollowSuggestionsFragment extends BaseAccountListFragment
|
||||||
|
|
||||||
public OnboardingFollowSuggestionsFragment(){
|
public OnboardingFollowSuggestionsFragment(){
|
||||||
super(R.layout.fragment_onboarding_follow_suggestions, 40);
|
super(R.layout.fragment_onboarding_follow_suggestions, 40);
|
||||||
itemLayoutRes=R.layout.item_account_list_onboarding;
|
itemLayoutRes=R.layout.item_account_list;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -84,13 +84,14 @@ public class OnboardingFollowSuggestionsFragment extends BaseAccountListFragment
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected RecyclerView.Adapter<?> getAdapter(){
|
protected RecyclerView.Adapter<?> getAdapter(){
|
||||||
TextView introText=new TextView(getActivity());
|
// Unused in Moshidon
|
||||||
introText.setTextAppearance(R.style.m3_body_large);
|
// TextView introText=new TextView(getActivity());
|
||||||
introText.setTextColor(UiUtils.getThemeColor(getActivity(), R.attr.colorM3OnSurface));
|
// introText.setTextAppearance(R.style.m3_body_large);
|
||||||
introText.setPaddingRelative(V.dp(56), 0, V.dp(24), V.dp(8));
|
// introText.setTextColor(UiUtils.getThemeColor(getActivity(), R.attr.colorM3OnSurface));
|
||||||
introText.setText(R.string.onboarding_recommendations_intro);
|
// introText.setPaddingRelative(V.dp(56), 0, V.dp(24), V.dp(8));
|
||||||
|
// introText.setText(R.string.onboarding_recommendations_intro);
|
||||||
MergeRecyclerAdapter mergeAdapter=new MergeRecyclerAdapter();
|
MergeRecyclerAdapter mergeAdapter=new MergeRecyclerAdapter();
|
||||||
mergeAdapter.addAdapter(new SingleViewRecyclerAdapter(introText));
|
// mergeAdapter.addAdapter(new SingleViewRecyclerAdapter(introText));
|
||||||
mergeAdapter.addAdapter(super.getAdapter());
|
mergeAdapter.addAdapter(super.getAdapter());
|
||||||
return mergeAdapter;
|
return mergeAdapter;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue