Slyce-Inc/SlyceMessaging

Instantiate SlyceMessagingFragment programmatically?

Opened this issue · 1 comments

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?

Have You achieved this?