Skip to content

Commit

Permalink
Merge branch 'master' of github.com:audaciouscode/PassiveDataKit-Android
Browse files Browse the repository at this point in the history
  • Loading branch information
audaciouscode committed Jun 20, 2017
2 parents 348bd19 + 1b9aea1 commit 057875f
Showing 1 changed file with 9 additions and 1 deletion.
Expand Up @@ -39,14 +39,22 @@ public static class Action {
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

String generatorClassName = this.getIntent().getStringExtra(DataDisclosureDetailActivity.GENERATOR_CLASS_NAME);

if (generatorClassName == null) {
this.finish();

return;
}

final DataDisclosureDetailActivity me = this;

this.setContentView(R.layout.layout_data_disclosure_detail_pdk);
this.getSupportActionBar().setSubtitle(R.string.title_data_disclosure);
this.getSupportActionBar().setDisplayHomeAsUpEnabled(true);

try {
this.mGeneratorClass = (Class<? extends Generator>) Class.forName(this.getIntent().getStringExtra(DataDisclosureDetailActivity.GENERATOR_CLASS_NAME));
this.mGeneratorClass = (Class<? extends Generator>) Class.forName(generatorClassName);
} catch (ClassNotFoundException e) {
// e.printStackTrace();
}
Expand Down

0 comments on commit 057875f

Please sign in to comment.