Merge "Do not allow multiple commits of the same rollback."

This commit is contained in:
Artur Satayev
2022-10-20 14:42:27 +00:00
committed by Gerrit Code Review

View File

@@ -75,6 +75,7 @@ public class MainActivity extends Activity {
String rollbackStatus = "FAILED";
if (rollbackStatusCode == RollbackManager.STATUS_SUCCESS) {
rollbackStatus = "SUCCESS";
mTriggerRollbackButton.setClickable(false);
}
makeToast("Status for rollback ID " + rollbackId + " is " + rollbackStatus);
}}, new IntentFilter(ACTION_NAME), Context.RECEIVER_NOT_EXPORTED);