private void loadSandboxList(Uri sandboxUri, String selectCompanyId) { SandboxFragment fragment = new SandboxFragment(); fragment.setSelectedCompanyId(selectCompanyId); fragment.setArguments( BaseActivity.intentToFragmentArguments(new Intent(Intent.ACTION_VIEW, sandboxUri))); getSupportFragmentManager() .beginTransaction() .replace(R.id.fragment_container_master, fragment) .commit(); }
private void loadSandboxDetail(Uri companyUri) { SandboxDetailFragment fragment = new SandboxDetailFragment(); fragment.setArguments( BaseActivity.intentToFragmentArguments(new Intent(Intent.ACTION_VIEW, companyUri))); getSupportFragmentManager() .beginTransaction() .replace(R.id.fragment_container_detail, fragment) .commit(); mDetailFragment = fragment; updateDetailBackground(); // If loading session details in portrait, hide the master pane mSlidingPaneLayout.closePane(); }