@Test public void testSmokeInit() { activity.onCreate(null); }
@Override public void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setupActionBar(); setContentView(R.layout.directory_chooser_activity); final DirectoryChooserConfig config = getIntent().getParcelableExtra(EXTRA_CONFIG); if (config == null) { throw new IllegalArgumentException( "You must provide EXTRA_CONFIG when starting the DirectoryChooserActivity."); } if (savedInstanceState == null) { final FragmentManager fragmentManager = getFragmentManager(); final DirectoryChooserFragment fragment = DirectoryChooserFragment.newInstance(config); fragmentManager.beginTransaction() .add(R.id.main, fragment) .commit(); } }
DirectoryChooserActivity extends AppCompatActivity implements
        DirectoryChooserFragment.OnFragmentInteractionListener { @Override public void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setupActionBar(); setContentView(R.layout.directory_chooser_activity); final DirectoryChooserConfig config = getIntent().getParcelableExtra(EXTRA_CONFIG); if (config == null) { throw new IllegalArgumentException( "You must provide EXTRA_CONFIG when starting the DirectoryChooserActivity."); } if (savedInstanceState == null) { final FragmentManager fragmentManager = getFragmentManager(); final DirectoryChooserFragment fragment = DirectoryChooserFragment.newInstance(config); fragmentManager.beginTransaction() .add(R.id.main, fragment) .commit(); } } }
DirectoryChooserActivity extends AppCompatActivity implements
        DirectoryChooserFragment.OnFragmentInteractionListener { @Override public void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setupActionBar(); setContentView(R.layout.directory_chooser_activity); final DirectoryChooserConfig config = getIntent().getParcelableExtra(EXTRA_CONFIG); if (config == null) { throw new IllegalArgumentException( "You must provide EXTRA_CONFIG when starting the DirectoryChooserActivity."); } if (savedInstanceState == null) { final FragmentManager fragmentManager = getFragmentManager(); final DirectoryChooserFragment fragment = DirectoryChooserFragment.newInstance(config); fragmentManager.beginTransaction() .add(R.id.main, fragment) .commit(); } }  }
DirectoryChooserActivity extends AppCompatActivity implements
        DirectoryChooserFragment.OnFragmentInteractionListener { @Override public void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setupActionBar(); setContentView(R.layout.directory_chooser_activity); final DirectoryChooserConfig config = getIntent().getParcelableExtra(EXTRA_CONFIG); if (config == null) { throw new IllegalArgumentException( "You must provide EXTRA_CONFIG when starting the DirectoryChooserActivity."); } if (savedInstanceState == null) { final FragmentManager fragmentManager = getFragmentManager(); final DirectoryChooserFragment fragment = DirectoryChooserFragment.newInstance(config); fragmentManager.beginTransaction() .add(R.id.main, fragment) .commit(); } }  @Override void onCreate(@Nullable Bundle savedInstanceState); @Override boolean onOptionsItemSelected(MenuItem item); @Override void onSelectDirectory(@NonNull String path); @Override void onCancelChooser(); }
DirectoryChooserActivity extends AppCompatActivity implements
        DirectoryChooserFragment.OnFragmentInteractionListener { @Override public void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setupActionBar(); setContentView(R.layout.directory_chooser_activity); final DirectoryChooserConfig config = getIntent().getParcelableExtra(EXTRA_CONFIG); if (config == null) { throw new IllegalArgumentException( "You must provide EXTRA_CONFIG when starting the DirectoryChooserActivity."); } if (savedInstanceState == null) { final FragmentManager fragmentManager = getFragmentManager(); final DirectoryChooserFragment fragment = DirectoryChooserFragment.newInstance(config); fragmentManager.beginTransaction() .add(R.id.main, fragment) .commit(); } }  @Override void onCreate(@Nullable Bundle savedInstanceState); @Override boolean onOptionsItemSelected(MenuItem item); @Override void onSelectDirectory(@NonNull String path); @Override void onCancelChooser(); static final String EXTRA_CONFIG; static final String RESULT_SELECTED_DIR; static final int RESULT_CODE_DIR_SELECTED; }