コード例 #1
0
 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();
 }
コード例 #2
0
  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();
  }