Skip to content

[BUG]: Cannot calculate operation after error until UI is cleared #349

@Guillaume-Lachapelle

Description

@Guillaume-Lachapelle

After an error occurs, the calculator doesn't reset the UI and no operation works until the C button is pressed enough times to get the UI back to 0.

Steps to reproduce:
9÷0.000000000000001
Press =
An unknown error occurs
UI doesn't reset
Any other operation made after that will not work as long as the display isn't cleared completely.
Press C 17 times
Press 1
The display shows 9÷1 (which should be easy to calculate)
Press =
Nothing happens
Press C3 times to reset the display to 0
Now the calculator starts working again

Calculator_bug_report_recording.webm

Device information: Pixel_3a_API_34_extension_level_7_x86_64

App version: 5.12.0

Android version:
Android Studio Iguana | 2023.2.1 Patch 1
Build #AI-232.10300.40.2321.11567975, built on March 13, 2024
Runtime version: 17.0.9+0--11185874 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 12
Registry:
debugger.new.tool.window.layout=true
ide.experimental.ui=true

Non-Bundled Plugins:
Statistic (4.2.14)
com.github.copilot (1.5.1.5285)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions