Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a708398c authored by satayev's avatar satayev
Browse files

Do not allow multiple commits of the same rollback.

A small improvement to UX, to avoid seeing FAIL rollbacks,
when the rollback has been a SUCCESS on a first try.

Bug: 220204580
Test: manual
Change-Id: I12957a7cdf2499d7ff6f9ce4e0dcc0e568927e6d
parent 020a77dc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);