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

Commit 99175a5

Browse files
committed
Merge branch 'develop' of https://github.com/Rolf-Smit/Android-Retainable-Tasks into develop
Conflicts: demo/src/main/java/org/neotech/app/retainabletasksdemo/Main.java library/src/main/java/org/neotech/library/retainabletasks/TaskManager.java
2 parents 2f9f73b + f8c0049 commit 99175a5

File tree

1 file changed

+0
-24
lines changed
  • demo/src/main/java/org/neotech/app/retainabletasksdemo

1 file changed

+0
-24
lines changed

demo/src/main/java/org/neotech/app/retainabletasksdemo/Main.java

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -43,30 +43,6 @@ protected void onCreate(Bundle savedInstanceState) {
4343
retainUserInterfaceButton.setOnClickListener(this);
4444
}
4545

46-
/*
47-
@Override
48-
protected void onStart() {
49-
super.onStart();
50-
progressDialog = ProgressDialog.getExistingInstance(getSupportFragmentManager(), DIALOG_PROGRESS);
51-
}
52-
53-
getTaskManager().attach(TASK_PROGRESS, this);
54-
55-
56-
getTaskManager().attach(TASK_RETAIN_UI_STATE, new TaskManager.TaskAttachListener() {
57-
@Override
58-
public Task.Callback onPreAttach(Task<?, ?> task) {
59-
60-
if (!task.isResultDelivered()) { //This call isn't necessary.
61-
retainUserInterfaceButton.setEnabled(false);
62-
retainUserInterfaceButton.setText("" + task.getLastKnownProgress());
63-
}
64-
return Main.this;
65-
}
66-
});
67-
}
68-
*/
69-
7046
@Override
7147
public Task.Callback onPreAttach(@NonNull Task<?, ?> task) {
7248
if(task.getTag().equals(TASK_RETAIN_UI_STATE)){

0 commit comments

Comments
 (0)