Skip to content

Commit

Permalink
Undo TODO 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Silver authored and Asser committed Oct 2, 2017
1 parent 832928c commit d8dae4b
Showing 1 changed file with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,6 @@ protected void onCreate(Bundle savedInstanceState) {
// TODO (6) Override onRestart, call super.onRestart, and call logAndAppend with ON_RESTART

// TODO (7) Override onDestroy, call super.onDestroy, and call logAndAppend with ON_DESTROY
/**
* The final call you receive before your activity is destroyed. This can happen either because
* the activity is finishing (someone called finish() on it, or because the system is
* temporarily destroying this instance of the activity to save space. You can distinguish
* between these two scenarios with the isFinishing() method.
*/
@Override
protected void onDestroy() {
super.onDestroy();

logAndAppend(ON_DESTROY);
}

/**
* Logs to the console and appends the lifecycle method name to the TextView so that you can
Expand Down

1 comment on commit d8dae4b

@mahmoudmabroukfarag
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@OverRide
protected void onRestart() {
super.onRestart();

  logAndAppend(ON_RESTART);

}

Please sign in to comment.