use of net.iGap.fragments.FragmentChat in project iGap-Android by KianIranian-STDG.
the class GoToChatActivity method loadChatFragment.
private void loadChatFragment(FragmentActivity activity) {
FragmentChat fragmentChat = new FragmentChat();
fragmentChat.setArguments(getBundle());
fragmentChatBackStack(activity);
if (G.twoPaneMode) {
if (activity instanceof ActivityMain) {
((ActivityMain) activity).goToChatPage(fragmentChat);
} else {
Log.wtf(this.getClass().getName(), "loadChatFragment");
}
} else {
new HelperFragment(activity.getSupportFragmentManager(), fragmentChat).setReplace(false).load();
}
}
use of net.iGap.fragments.FragmentChat in project iGap-Android by KianIranian-STDG.
the class ActivityMain method goToTabletEmptyPage.
public void goToTabletEmptyPage() {
Log.wtf(this.getClass().getName(), "goToTabletEmptyPage");
Fragment fragment = getSupportFragmentManager().findFragmentById(R.id.mainFrame);
if (fragment instanceof FragmentChat) {
getSupportFragmentManager().beginTransaction().remove(fragment).commit();
}
}
use of net.iGap.fragments.FragmentChat in project iGap-Android by KianIranian-STDG.
the class ActivityMain method goToChatPage.
public void goToChatPage(FragmentChat fragmentChat) {
Fragment fragment = getSupportFragmentManager().findFragmentById(R.id.mainFrame);
if (fragment instanceof FragmentChat) {
getSupportFragmentManager().beginTransaction().remove(fragment).commit();
}
getSupportFragmentManager().beginTransaction().add(R.id.mainFrame, fragmentChat).commit();
/*new HelperFragment(getSupportFragmentManager(), fragmentChat).setReplace(false).load();*/
}
Aggregations