Skip to content
This repository was archived by the owner on Dec 17, 2020. It is now read-only.

Commit bb7b8cd

Browse files
committed
Fixed small mistake in the readme.
1 parent a70ce4e commit bb7b8cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Then you can execute the task using the `TaskManager.execute()` method. This met
9696

9797

9898
```java
99-
public class Main extends AppCompatActivity implements Task.Callback {
99+
public class Main extends TaskActivityCompat implements Task.Callback {
100100

101101
@Override
102102
public void onClick(View view){
@@ -131,7 +131,7 @@ When the configuration changes (device rotates) the `TaskManager` will automatic
131131
Although tasks are automatically retained, you will still need to provide a new `Callback` listener for each `Task`. You can easily do this by implementing (overriding) the `TaskActivityCompat` (or `TaskFragmentCompat`) `onPreAttachTask(Task)` method and return a `Callback` instance. At this point you can also use the `onPreAttachTask(Task)` method to restore the user-interface state according to the `Tasks` state. The `onPreAttachTask(Task)` method will be called for each task that isn't finished (didn't deliver).
132132

133133
```java
134-
public class Main extends AppCompatActivity implements Task.Callback {
134+
public class Main extends TaskActivityCompat implements Task.Callback {
135135

136136
@Override
137137
public Task.Callback onPreAttach(Task<?, ?> task) {

0 commit comments

Comments
 (0)