Skip to content

Commit 8532328

Browse files
committed
Add try again button to binary updater
1 parent 974e695 commit 8532328

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/com/noshufou/android/su/UpdaterFragment.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ public void onStepsChanged(Step step) {
100100
} else if (step.state != Step.STATE_IN_PROGRESS) {
101101
getListAdapter().addStatusToLastEntry(step.result,
102102
(step.state == Step.STATE_SUCCESSFUL) ? ConsoleAdapter.CONSOLE_GREEN : ConsoleAdapter.CONSOLE_RED );
103+
if (step.state == Step.STATE_FAILED) {
104+
mButton.setEnabled(true);
105+
mButton.setText(R.string.updater_try_again);
106+
}
103107
}
104108
}
105109

0 commit comments

Comments
 (0)