Skip to content

Commit

Permalink
Add a preInit() method to BaseCrashReportDialog for e.g. AppCompatDel…
Browse files Browse the repository at this point in the history
…egate setup
  • Loading branch information
str4d committed Jul 16, 2016
1 parent 88ff3a4 commit 54a6cf0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/org/acra/dialog/BaseCrashReportDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public abstract class BaseCrashReportDialog extends Activity {
*/
@Override
protected final void onCreate(@Nullable Bundle savedInstanceState) {
preInit(savedInstanceState);
super.onCreate(savedInstanceState);


Expand Down Expand Up @@ -82,6 +83,16 @@ protected final void onCreate(@Nullable Bundle savedInstanceState) {
}
}

/**
* Handle any necessary pre-onCreate() setup here.
*
* @param savedInstanceState If the activity is being re-initialized after
* previously being shut down then this Bundle contains the data it most
* recently supplied in {@link #onSaveInstanceState}. <b><i>Note: Otherwise it is null.</i></b>
*/
protected void preInit(@Nullable Bundle savedInstanceState) {
}

/**
* Responsible for creating and showing the crash report dialog.
*
Expand Down

0 comments on commit 54a6cf0

Please sign in to comment.