Fix crash on receiving event in timeline (#704)
This commit is contained in:
parent
e4803019b8
commit
8c20d5dd93
1 changed files with 10 additions and 3 deletions
|
@ -196,14 +196,21 @@ public class TimelineFragment extends SFragment implements
|
|||
}
|
||||
|
||||
@Override
|
||||
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,
|
||||
Bundle savedInstanceState) {
|
||||
public void onCreate(@Nullable Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
Bundle arguments = Objects.requireNonNull(getArguments());
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,
|
||||
Bundle savedInstanceState) {
|
||||
final View rootView = inflater.inflate(R.layout.fragment_timeline, container, false);
|
||||
|
||||
recyclerView = rootView.findViewById(R.id.recycler_view);
|
||||
|
|
Loading…
Reference in a new issue