This commit is contained in:
Conny Duck 2018-07-05 21:36:16 +02:00
commit c452b8f281

View file

@ -196,14 +196,21 @@ public class TimelineFragment extends SFragment implements
} }
@Override @Override
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, public void onCreate(@Nullable Bundle savedInstanceState) {
Bundle savedInstanceState) { super.onCreate(savedInstanceState);
Bundle arguments = Objects.requireNonNull(getArguments()); Bundle arguments = Objects.requireNonNull(getArguments());
kind = Kind.valueOf(arguments.getString(KIND_ARG)); kind = Kind.valueOf(arguments.getString(KIND_ARG));
if (kind == Kind.TAG || kind == Kind.USER || kind == Kind.USER_WITH_REPLIES|| kind == Kind.LIST) { if (kind == Kind.TAG
|| kind == Kind.USER
|| kind == Kind.USER_WITH_REPLIES
|| kind == Kind.LIST) {
hashtagOrId = arguments.getString(HASHTAG_OR_ID_ARG); hashtagOrId = arguments.getString(HASHTAG_OR_ID_ARG);
} }
}
@Override
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
final View rootView = inflater.inflate(R.layout.fragment_timeline, container, false); final View rootView = inflater.inflate(R.layout.fragment_timeline, container, false);
recyclerView = rootView.findViewById(R.id.recycler_view); recyclerView = rootView.findViewById(R.id.recycler_view);