launch chat next to board. Works to send, but crash when opening the

notification that results.
This commit is contained in:
Eric House 2016-07-10 14:21:18 -07:00
parent b8b73cc321
commit 76404258a3

View file

@ -273,10 +273,10 @@ public class ChatDelegate extends DelegateBase {
bundle.putStringArray( INTENT_KEY_NAMES, names );
bundle.putBooleanArray( INTENT_KEY_LOCS, locs );
Activity activity = delegator.getActivity();
if ( activity instanceof FragActivity ) {
FragActivity.addFragment( new ChatFrag(), bundle, delegator );
if ( delegator.inDPMode() ) {
delegator.addFragment( new ChatFrag(), bundle );
} else {
Activity activity = delegator.getActivity();
Intent intent = new Intent( activity, ChatActivity.class );
intent.putExtras( bundle );
activity.startActivityForResult( intent, requestCode.ordinal() );