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

Skip to content
Commit d4959e85 authored by Hans Boehm's avatar Hans Boehm
Browse files

Avoid duplicate requireResult() calls, add checking

Bug: 33011774

Don't needlessly cancel a previous requireResult() call. In addition to
wasting resources, this results in an onCancelled() call that set
the state back to INPUT, with surprising UI results.

If requireResult() is called before the corresponding CalculatorResult
is measured, crash with a stack trace. That seems to be an easy mistake.

Delete code that used to make things kind of work if we ran without
a correct display size.

Delay requireResult call that used to occur during onCreate().
Arrange to get the right listener invoked when the onLayout
requireResult() call completes.

Change-Id: I5da4855bfdda27fca5abc5871c4b312ef6ebede0
parent 9cdba469
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment