Slyce-Inc / SlyceMessaging

A messaging library for Android
MIT License
968 stars 173 forks source link

Instantiate SlyceMessagingFragment programmatically? #39

Open urgentx opened 7 years ago

urgentx commented 7 years ago

I've tried to generate a new SlyceMessagingFragment via Java, but the instance generated throws a NullPointerException when trying to set LoadMoreMessagesListener(). .getId() also returns null.

This is the code I used to construct it, as well as trying the default empty constructor:

slyceMessagingFragment = (SlyceMessagingFragment) SlyceMessagingFragment.instantiate(this, "MatchFragment.class");

Has anyone been able to achieve this?

OmarHassan25 commented 7 years ago

Have You achieved this?