Skip to content

Commit d8dae4b

Browse files
Jeremy SilverAsser
authored andcommitted
Undo TODO 7
1 parent 832928c commit d8dae4b

File tree

1 file changed

+0
-12
lines changed
  • Lesson05a-Android-Lifecycle/T05a.01-Exercise-LogLifecycle/app/src/main/java/com/example/android/lifecycle

1 file changed

+0
-12
lines changed

Lesson05a-Android-Lifecycle/T05a.01-Exercise-LogLifecycle/app/src/main/java/com/example/android/lifecycle/MainActivity.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,6 @@ protected void onCreate(Bundle savedInstanceState) {
6161
// TODO (6) Override onRestart, call super.onRestart, and call logAndAppend with ON_RESTART
6262

6363
// TODO (7) Override onDestroy, call super.onDestroy, and call logAndAppend with ON_DESTROY
64-
/**
65-
* The final call you receive before your activity is destroyed. This can happen either because
66-
* the activity is finishing (someone called finish() on it, or because the system is
67-
* temporarily destroying this instance of the activity to save space. You can distinguish
68-
* between these two scenarios with the isFinishing() method.
69-
*/
70-
@Override
71-
protected void onDestroy() {
72-
super.onDestroy();
73-
74-
logAndAppend(ON_DESTROY);
75-
}
7664

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

0 commit comments

Comments
 (0)